IQSS / IQSS/dataverse

Export Failed (403) when following directApiCall URL from OAI-PMH dataverse_json record

Open
#12,670 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Harvesting good first issue Size: 3 Type: Bug
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?

  1. GET /oai?verb=GetRecord&metadataPrefix=dataverse_json&identifier=
  2. Read the directApiCall attribute from the element. It contains:
    .../api/datasets/export?exporter=dataverse_json&persistentId=
  3. Follow that URL exactly as returned.
  • When does this issue occur?
    When you follow the directApiCall URL as published by the OAI-PMH
    server

  • Which page(s) does it occurs on?
    /api/datasets/export

  • What happens?
    You got a "Export Failed" message

  • To whom does it occur (all users, curators, superusers)?
    all users

  • What did you expect to happen?
    The dataset JSON.

Which version of Dataverse are you using?
6.11

Any related open or closed issues to this bug report?

Screenshots:

Example: https://dataverse.harvard.edu/api/datasets/export?exporter=dataverse_json&persistentId=doi:10.7910/DVN/CEN9FS

Image

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 at the OAI-PMH GetRecord endpoint and trace how its dataverse_json metadata builds the directApiCall URL, then inspect /api/datasets/export handling. Reproduce the exact published URL, including its escaped query separator, and verify that it returns dataset JSON rather than Export Failed (403).

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.