Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkset contains links that are rejected by the API #9957

Closed
markwilkinson opened this issue Sep 26, 2023 · 3 comments · Fixed by #9955
Closed

Linkset contains links that are rejected by the API #9957

markwilkinson opened this issue Sep 26, 2023 · 3 comments · Fixed by #9955
Labels
Feature: Signposting Typed links in headers, etc. https://signposting.org Type: Bug a defect
Milestone

Comments

@markwilkinson
Copy link

What steps does it take to reproduce the issue?

  • When does this issue occur?

In a record's linkset, there are describedby links as follows;

<https://dataverse.harvard.edu/api/datasets/export?exporter=schema.org&persistentId=doi:10.7910/DVN/Z2JD58>
rel="describedby"
type="application/json+ld"

Attempting to retrieve this using curl

curl -v -H "Accept: application/json+ld" "https://dataverse.harvard.edu/api/datasets/export?exporter=schema.org&persistentId=doi:10.7910/DVN/Z2JD58"

results in a 406 (API rejection) error

  • Which page(s) does it occurs on?

  • What happens?

406 error

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

  • What did you expect to happen?

Return me some yummy JSON :-)

Which version of Dataverse are you using?

current harvard dataverse release (5.14?)

Any related open or closed issues to this bug report?

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:

@qqmyers
Copy link
Member

qqmyers commented Sep 26, 2023

@markwilkinson - thanks for testing Signposting! I'm making fixes as you go in #9955. For this issue, it looks like requesting application/ld+json (versus json+ld) already works, so you can get the response that way as a workaround. The PR updates to use ld+json linkset.

@markwilkinson
Copy link
Author

Heh.... I didn't notice that! Yes, the mime type should be ld+json. I simply take whatever you put in the type field and use that as my accept type, so I didn't even notice it was backwards :-)

@markwilkinson
Copy link
Author

I'll update my gem with a workaround if I have time before tomorrow's hackathon.

@pdurbin pdurbin added Type: Bug a defect Feature: Signposting Typed links in headers, etc. https://signposting.org labels Sep 26, 2023
pdurbin added a commit to GlobalDataverseCommunityConsortium/dataverse that referenced this issue Oct 4, 2023
pdurbin added a commit to GlobalDataverseCommunityConsortium/dataverse that referenced this issue Oct 4, 2023
@pdurbin pdurbin added this to the 6.1 milestone Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Signposting Typed links in headers, etc. https://signposting.org Type: Bug a defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants