IQSS / IQSS/dataverse

Request: Better Native API error when attempting to upload file while dataset is locked

Open
#8,700 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: API Type: Suggestion User Role: API User
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.