Local Filer server directories are not removed after Delete of draft dataset
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
What steps does it take to reproduce the issue?
Looking at the local file storage location, where dataverse saves dataset files, I noticed several empty directories. After looking up a few of the datasets (based on the local file path i.e., files/10.18130/V3/SJJJNS) in our Dataverse repository, there were no datasets with those "paths".
-
When does this issue occur?
using local file storage (V5.11.1) when a draft dataset is deleted the directory is still there. All the files have been removed, just the directory is there. -
What did you expect to happen?
After a draft dataset is deleted, I would have expected the directory - that dataverse created also be removed.
Which version of Dataverse are you using?
5.11.1
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
Start by tracing the draft dataset deletion path for local file storage, using the reproduction details and the files/10.18130/V3/SJJJNS example as a reference. Confirm where dataset files are removed and define done as removing the now-empty directory as well, without affecting deletion of other datasets.
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
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100