IQSS / IQSS/dataverse

Native API fails to update data file in published dataset

Open
#8,542 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When attempting to edit the metadata of a file in a published dataset via API, the POST request returns the following error:

{"status":"ERROR","message":"Filename already exists at xxxx.jpg"}

Identical requests that pass file IDs on draft datasets are successfully edited. The UI supports editing published data files by creating a new draft and version when published.

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 at the Native API endpoint that handles metadata edits for files in published datasets and reproduce the request using a file ID. Compare its published-dataset path with the draft-dataset behavior; done means a published edit follows the UI's draft-and-version flow without the filename-already-exists error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.