Skip to content

getDatasetVersionArchivalStatus API give blank response when archival copy location is null #10168

@sekmiller

Description

@sekmiller

What steps does it take to reproduce the issue?
Call the getDatasetVersionArchivalStatus api

EX: curl -H "X-Dataverse-key:2b3b0a53-2740-450f-b7eb-a84551f667dc" -H "Accept:application/json" "http://localhost:8080/api/datasets/:persistentId/1.0/archivalStatus?persistentId=doi:10.5072/FK2/WJASHX"

If the getArchivalCopyLocation method returns null then the response is empty. The calling user just sees the prompt - with no error or any visible response

  • When does this issue occur? See above

  • Which page(s) does it occurs on? not a page - api

  • What happens? response is completely empty/blank

  • To whom does it occur (all users, curators, superusers)? api users with publish dataset perms

  • What did you expect to happen? would like to get an error response telling me that the archival version is not available.
    By the way changing the status of this line in Datasets.java:

      return error(Status.NO_CONTENT, "This dataset version has not been archived");
    
     to 
      Status.NOT_FOUND seems to fix the error - or at least posts the error message back to the caller.
    

Which version of Dataverse are you using? 6.0/6.1

Any related open or closed issues to this bug report? Not that I'm aware of

Screenshots:

No matter the issue, screenshots are always welcome.

To add a screenshot, please use one of the following formats and/or methods described here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY26 Sprint 4FY26 Sprint 4 (2025-08-13 - 2025-08-27)Size: 3A percentage of a sprint. 2.1 hours.Type: Buga defect

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions