IQSS / IQSS/dataverse

Filenames with "/" is Changed Incorrectly

Open
#9,080 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: File Upload & Handling Type: Bug User Role: Depositor
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?
In UI: Uploading file with a slash "/".

  • When does this issue occur?
    On upload, the filename is changed and the "/" is replaced by ":".
    Filename - uploaded: citations/files.txt
    Filename is changed to: citations:files.txt

  • Which page(s) does it occurs on?
    Drag or select files for upload

  • What happens?
    When "Save Changes" is clicked, the following error appears
    Screen Shot 2022-10-18 at 1 22 50 PM

  • To whom does it occur (all users, curators, superusers)?
    all users

  • What did you expect to happen?
    Not sure what to expect, but did not expect the filename to be changed to a name that isn't valid.

Which version of Dataverse are you using?
5.11.1

Any related open or closed issues to this bug report?
Might be related to:

Closed ticket:

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

Reproduce the issue from the upload UI using a filename such as citations/files.txt, then trace what happens when Save Changes is clicked. Review the related issues 8926 and 630 for prior context. Done should address the filename transformation and prevent the reported save error, although the desired slash-handling behavior still needs confirmation.

Written by the indexing model from the issue text.

Assessment

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