IQSS / IQSS/dataverse-frontend
File Upload Fails When Entering Special Characters in File Path
Nobody has claimed this yet.
- 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:
- Navigate to the file upload screen of a dataset.
- Upload any file.
- In the File Path field, enter special characters (e.g., @, #, $, %, ^, &).
- 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
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 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