Request: Better Native API error when attempting to upload file while dataset is locked
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Hello!
I'm building a file uploader to dataverse as part of CORE2, and ran into a confusing experience using the Native API.
Dataverse locks the dataset for ingest if a file needs to be converted to tabular. It would be helpful for the API to report this as the reason for the upload failing. As it stands, the error is a very generic "Failed to add file to dataset."
Thanks for reading :)
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 by tracing the Native API file-upload handling for the locked-dataset ingest path and reproduce the failure described for CORE2. Done means an upload rejected because the dataset is locked reports that locking reason instead of only "Failed to add file to dataset."
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100