Replace File: Replacing a published file in new draft where orig file metadata changed results in deleted file and failure.
Open
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.
- create a dataset with one file, no extra file metadata, publish.
- edit file metadata, add path, descript, tag.
- replace file with another file, I used an image replacing text but should not matter.
- save and see error, object has changed/lock
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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