IQSS / IQSS/dataverse

Local Filer server directories are not removed after Delete of draft dataset

Open
#9,411 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: File Upload & Handling Type: Suggestion User Role: Sysadmin
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.