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

Cannot load user list #3556

Closed
edmundoa opened this Issue Feb 28, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@edmundoa
Member

edmundoa commented Feb 28, 2017

Using the current master, going to the /system/authentication page ends in a endless loading spinner and the following error in the console:

2017-02-28 14:23:01.601 app.js:137 TypeError: UsersStore.loadUsers is not a function
    at Constructor.loadUsers (UserList.jsx:67)
    at Constructor.componentDidMount (UserList.jsx:57)
    at CallbackQueue.notifyAll (vendor.js:11738)
    at ReactReconcileTransaction.close (vendor.js:46976)
    at ReactReconcileTransaction.closeAll (vendor.js:10301)
    at ReactReconcileTransaction.perform (vendor.js:10248)
    at ReactUpdatesFlushTransaction.perform (vendor.js:10235)
    at ReactUpdatesFlushTransaction.perform (vendor.js:6293)
    at Object.flushBatchedUpdates (vendor.js:6354)
    at Object.wrapper [as flushBatchedUpdates] (vendor.js:6170)
    at ReactDefaultBatchingStrategyTransaction.closeAll (vendor.js:10301)
    at ReactDefaultBatchingStrategyTransaction.perform (vendor.js:10248)
    at Object.batchedUpdates (vendor.js:28041)
    at Object.enqueueUpdate (vendor.js:6383)
    at enqueueUpdate (vendor.js:12376)
    at Object.enqueueSetState (vendor.js:12542)
    at Constructor.ReactComponent.setState (vendor.js:27463)
    at Constructor.eval (mixinReactProxy.js:20)
    at eval (UsersPage.jsx:8)
__webpack_require__.oe @ app.js:137
2017-02-28 14:23:01.654 UserList.jsx:67 Uncaught (in promise) TypeError: UsersStore.loadUsers is not a function
    at Constructor.loadUsers (UserList.jsx:67)
    at Constructor.componentDidMount (UserList.jsx:57)
    at CallbackQueue.notifyAll (vendor.js:11738)
    at ReactReconcileTransaction.close (vendor.js:46976)
    at ReactReconcileTransaction.closeAll (vendor.js:10301)
    at ReactReconcileTransaction.perform (vendor.js:10248)
    at ReactUpdatesFlushTransaction.perform (vendor.js:10235)
    at ReactUpdatesFlushTransaction.perform (vendor.js:6293)
    at Object.flushBatchedUpdates (vendor.js:6354)
    at Object.wrapper [as flushBatchedUpdates] (vendor.js:6170)
    at ReactDefaultBatchingStrategyTransaction.closeAll (vendor.js:10301)
    at ReactDefaultBatchingStrategyTransaction.perform (vendor.js:10248)
    at Object.batchedUpdates (vendor.js:28041)
    at Object.enqueueUpdate (vendor.js:6383)
    at enqueueUpdate (vendor.js:12376)
    at Object.enqueueSetState (vendor.js:12542)
    at Constructor.ReactComponent.setState (vendor.js:27463)
    at Constructor.eval (mixinReactProxy.js:20)
    at eval (UsersPage.jsx:8)

Looking at the UsersStore, I saw that this is probably related to the changes in the export made in #3460. Currently the UsersStore is not the default export of the module, so when using the default import, the store is not imported properly.

Expected Behavior

The user list should load.

Current Behavior

The user list does not load.

Steps to Reproduce (for bugs)

  1. Go to System -> Authentication page
  2. See that the user list does not load

Your Environment

  • Graylog Version: Graylog 2.3.0-SNAPSHOT+90821dc

@edmundoa edmundoa added the bug label Feb 28, 2017

@edmundoa edmundoa added this to the 2.3.0 milestone Feb 28, 2017

@dennisoelkers dennisoelkers self-assigned this Feb 28, 2017

dennisoelkers added a commit that referenced this issue Mar 1, 2017

Fixing exports of UsersStore, which were accidentally changed.
While migrating to webpack 2 and some experimentation with exporting
semantics, a change of the exports of the UsersStore slipped in. This
change is reverting that.

Fixes #3556.

@joschi joschi closed this in #3560 Mar 2, 2017

@wafflebot wafflebot bot removed the in progress label Mar 2, 2017

joschi added a commit that referenced this issue Mar 2, 2017

Fix accidentally changed exports of UsersStore (#3560)
While migrating to webpack 2 and some experimentation with exporting
semantics, a change of the exports of the UsersStore slipped in. This
change is reverting that.

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