IQSS / IQSS/dataverse

Changing file metadata doesn't force a major version update, which is required to cause update of file DOIs

Open
#10,639 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If files are added or deleted from a version, we detect it and force the user to do a major /whole number version update. However, if file metadata, such as the name/path/tags are changed, the user can still select a minor version update. One consequence of this when File PIDs are enabled is that, since file PIDs are not updated for minor versions, the file PIDs don't get updated in that case. (I'm not sure if there are other differences.)

As this is pretty minor, and checking for all filemetadata changes could be expensive (unless we track changes with a last modified date or something), I don't currently have any plan to fix it - adding the issue so we're aware/others can decide whether to prioritize.

  • What did you expect to happen?
    Editing file metadata could force a major version update (since it could be a file name change or path which looks like a data change), but alternately, changing publication to update file DOIs for minor version changes (if changes were made) could make sense as well (the file contents can't change so editing file metadata is still a metadata change)- as long as the PIDs are updated, major or minor version change doesn't matter so much.

Which version of Dataverse are you using?
6.2/develop

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 tracing version validation for added, deleted, and changed file metadata, then inspect how file PIDs are handled during publication; done requires an agreed behavior for metadata changes and tests covering the selected version and PID outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.