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

API 403 errors #3358

Closed
ahamelers opened this issue May 9, 2024 · 2 comments · Fixed by datadryad/dryad-app#1646
Closed

API 403 errors #3358

ahamelers opened this issue May 9, 2024 · 2 comments · Fixed by datadryad/dryad-app#1646
Assignees
Labels
bug Something isn't working Dryad API permissions
Milestone

Comments

@ahamelers
Copy link
Collaborator

Bug description:

API user initially reported receiving 403 errors while attempting to download an unpublished dataset. Ryan was able to verify this (see steps to reproduce below). The user is now reporting that they are unable to download individual files or to update datasets as well.

We further investigated the Dryad issue and we concluded that integration in
essence no longer works. We are still able to create datasets and delete
documents but update and all download options no longer work. The issues
started occurring as far as March and we think users were not reporting it
since individual file download worked. Individual file download no longer
works. For a while file update worked, but it no longer works either. We
were getting various errors from 500 (Internal server error), 403 (requested
resource is forbidden) to 405 (Method Not Allowed) reporting files are too
big. Since we are getting inconsistent errors for the same calls we are
really not sure what is going on their end. They need to investigate on
their end.

The 405 error is fine but the others shouldn't be happening.

Steps to reproduce:

  1. This works: curl -i -X GET https://datadryad.org/api/v2/datasets/doi%3A10.5061%2Fdryad.b2rbnzspw -H "Authorization: Bearer <some_token>"
  2. If you add /download, it doesn’t work, gives a 403. (The dataset is not yet published.)

Expected behavior:

API users who create datasets should be able to download and to update those datasets

@ahamelers
Copy link
Collaborator Author

API downloads work locally, but not on sandbox or prod. I've tried pushing some rack_attack changes with no effect. As far as I can see looking at our permissions setup, any user who can see dataset metadata including a download link should also be able to download that dataset (and the files thereof).

I think the AWS WAF settings are now the most likely suspect here.

@ahamelers
Copy link
Collaborator Author

It was the AWS WAF settings.

@github-project-automation github-project-automation bot moved this from In progress to Completed in Dryad product board May 10, 2024
@ryscher ryscher added this to the Sprint 117 milestone May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Dryad API permissions
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants