-
Notifications
You must be signed in to change notification settings - Fork 137
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
Atlas 2.14.0 - Characterization - /user/refresh with 404 when user authentication not enabled #2899
Comments
Yes, that works, we can post a fix. I think, tho, that we should just a top-level check for auth enabled, and return a resolved promise instead of putting it into the same if as the promise pending check. |
Could you please try the change suggested in this PR: #2900 I've added the enable check in |
Tested suggested changes, those worked fine:
Also, noticed typo in comments: |
Thanks, I'll correct and merge it into a hotfix. Thanks very much for taking the time to report and test. |
Expected behavior
In 2.14.0 version of Atlas, can navigate to Characterizations section and browse any of existing characterization from the list displayed. Shall display selected characterization information.
(Likewise, creating New Characterization is problematic in the same way.)
Actual behavior
Pop-up dialog with message
Error! Please see server logs for details.
and blank page appears.The culprit seems to be access attempt to /user/refresh endpoint when user authentication for the whole setup is not enabled.
Firefox console:
Tomcat access logs, IP redacted:
Steps to reproduce behavior
In 2.14.0 version of Atlas, navigate to Characterizations section and try to browse any of existing characterization from the list displayed. Problematic behaviour discovered by Marek Oja.
Possible fix
We used to fix a line in js/services/AuthAPI.js where instead
we use
Works fine for us, for now.
Related
The text was updated successfully, but these errors were encountered: