directoryLabel leading '.' char for hidden directories is ignored (removed)
Nobody has claimed this yet.
- 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?
Crate a new file in a dataset with directoryLabel starting with '.' char. And save the file.
-
When does this issue occur?
Issue occurs when adding files in hidden directories on top level. Hidden directories inside other directories work. -
Which page(s) does it occurs on?
Upload dataverse files (API and webinterface) -
What happens?
The leading '.' char is ignored / removed. For example adding.hidden/filewill be saved ashidden/file. -
To whom does it occur (all users, curators, superusers)?
all users -
What did you expect to happen?
Adding.hidden/fileshould be saved in a hidden directory named.hidden
Which version of Dataverse are you using?
v. 5.9 build 750-fb24c87
Any related open or closed issues to this bug report?
datalad/datalad-dataverse#83
Screenshots:
- Adding file in hidden dir

- hidden dir is now no longer hidden

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
Reproduce the upload through both the API and web interface, focusing on top-level directoryLabel handling for .hidden/file; nested hidden directories are reported to work. Trace where the leading dot is removed and verify that uploads preserve .hidden/file in both entry points, with regression coverage for the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100