IQSS / IQSS/dataverse

Download: Do not increment file download count if file is not downloaded, throws error.

Open
#3,114 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: File Upload & Handling Feature: Metrics + Reports Type: Bug User Role: Guest
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

The file download count is incremented when the download button is pressed, not if it completes successfully. This usually works fine but in the case of a problem accessing the file on the file system, the download count still increments though the user sees an error.

This became apparent with at least one user reported issue, see RT 235472

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the download button flow and the file-system error path to find where the download count is incremented. Done means a failed download that shows an error does not increase the file's count, while a completed download still does.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.