IQSS / IQSS/dataverse-frontend

File Upload Fails When Entering Special Characters in File Path

Open
#600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug GREI Re-arch SPA: File Upload Page
Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

Description:
When uploading a file to a dataset, entering special characters in the File Path field causes the upload to fail. A warning message appears in JSF, indicating that special characters are not allowed. However, there is no clear validation preventing users from entering such characters, and if they do enter special characters, the file upload fails.

Steps to Reproduce:

  1. Navigate to the file upload screen of a dataset.
  2. Upload any file.
  3. In the File Path field, enter special characters (e.g., @, #, $, %, ^, &).
  4. Click Save.

Expected Behavior:

The system should either:
Allow special characters in the File Path (if technically feasible).
OR clearly prevent users from entering them with proper validation before submission.

Actual Behavior:

A warning message appears in JSF, but the system still allows users to enter special characters.
The file upload fails when attempting to save.

Video can be found below:

https://github.com/IQSS/dataverse-frontend/pull/596#issuecomment-2643446393

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 at the dataset file upload screen and reproduce the failure using special characters in the File Path field, checking the JSF warning and save behavior. Done means the upload no longer fails for supported characters, or the field clearly prevents unsupported characters before submission.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.