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

Error loading edit user page for reader user #2572

Closed
edmundoa opened this Issue Aug 1, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@edmundoa
Member

edmundoa commented Aug 1, 2016

Problem description

Loading the edit user form from a reader user account after a full refresh fails, and the user is redirected to the start page. Trying to go to the form for a second time works successfully.

This is the error in the browser's console:

GET http://localhost:12900/system/ldap/settings 403 (Forbidden)
There was an error fetching a resource: cannot GET http://localhost:12900/system/ldap/settings (403). Additional information: User [yolo] not authorized. (GET system/ldap/settings)
Unhandled rejection Error: cannot GET http://localhost:12900/system/ldap/settings (403)

Steps to reproduce the problem

  1. Do a full refresh
  2. Login with a reader user
  3. Click on your user name -> Edit profile in the navigation bar
  4. See that you got to your start page instead of to the edit user page
  5. Click on your user name -> Edit profile again
  6. See your user details

Environment

  • Graylog Version: 2.1.0-beta.2-SNAPSHOT (920cd37)

@edmundoa edmundoa added bug web labels Aug 1, 2016

@edmundoa edmundoa added this to the 2.1.0 milestone Aug 1, 2016

@edmundoa edmundoa self-assigned this Aug 1, 2016

edmundoa added a commit that referenced this issue Aug 1, 2016

Do not load LDAP configuration on store init
Instead, get the configuration when loading the component.

Fixes #2572

@kroepke kroepke closed this in 686ab28 Aug 2, 2016

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