IQSS / IQSS/dataverse

Replace File: Replacing a published file in new draft where orig file metadata changed results in deleted file and failure.

Open
#7,561 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

Happens in v5.3, probably earlier.

  1. create a dataset with one file, no extra file metadata, publish.
  2. edit file metadata, add path, descript, tag.
  3. replace file with another file, I used an image replacing text but should not matter.
  4. save and see error, object has changed/lock
  5. cancel and notice orig file is now missing from draft.

You can replace a published file in draft if you do not modify file metadata of orig file in draft.

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

No source file, test, or entry point is named. Start by reproducing the published-file replacement flow with changed metadata, then locate the draft file-replacement handling and its existing tests. Done means replacing the file saves without an error and cancelling does not remove the original file from the draft.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
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.