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

access to public datasets in pages is prevented for anonymous users #16210

Closed
martenson opened this issue Jun 8, 2023 · 2 comments · Fixed by #16226
Closed

access to public datasets in pages is prevented for anonymous users #16210

martenson opened this issue Jun 8, 2023 · 2 comments · Fixed by #16226

Comments

@martenson
Copy link
Member

found by @yvanlebras

When public dataset is included in a Galaxy Page and the page is accessed by an anonymous user they'll get a 403 error:

GET https://ecology.usegalaxy.eu/api/datasets/4838ba20a6d8676504b8a214b2e630da/get_content_as_text

API authentication required for this request 403

This is likely due to the get_authenticated_user check on the following line:
https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/webapps/galaxy/services/datasets.py#L613

Galaxy Version and/or server at which you observed the bug
Galaxy Version: usegalaxy.eu {"version_major":"23.0","version_minor":"1.dev0"}

Expected behavior
Dataset should be accessible to anon users based on its permissions.

@yvanlebras
Copy link
Contributor

Thank you so much @martenson for making the bridge from my question to this issue, and for identifying the origin of the issue! Hope all is ok on your side! Have a nice end of week Martin!

@hexylena
Copy link
Member

hexylena commented Jun 8, 2023

technically a duplicate of a subitem in #15220 but maybe since this is its own issue it'll get more attention?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants