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

Empty security/user state bug #867

Open
berthieresteban opened this issue Dec 28, 2020 · 2 comments
Open

Empty security/user state bug #867

berthieresteban opened this issue Dec 28, 2020 · 2 comments

Comments

@berthieresteban
Copy link
Contributor

berthieresteban commented Dec 28, 2020

Expected Behavior

In a kuzzle without any users, AC should display the card no user is defined

Current Behavior

First AC display that card, but click again on users and AC will show search bar, infinite loader and console error:
TypeError: Cannot read property 'key' of undefined
But having a wrong filter setted in url or localStorage and the AC display the loader instead of an error state

Possible Solution

Actually no idea

Steps to Reproduce

  1. Run Kuzzle
  2. Go to AC on security page
  3. click on Users in left panel

Context (Environment)

Kuzzle version: 2 (image: image: kuzzleio/kuzzle:2)
Admin Console Version: next

@berthieresteban
Copy link
Contributor Author

[EDIT]: I had a bad entry in my localStorage for users filters: name="12/03/2020 15:56", id="16546084680"
Delete it resolve the bug (but I can't paste the localstorage line here....)
Url was: http://next-console.kuzzle.io/#/security/users?name=13%2F10%2F2020%2012%3A23&id=1605266606206
Since I deleted it I can't reproduce this bug

@xbill82
Copy link
Contributor

xbill82 commented Jan 4, 2021

A good way to reproduce the bug would be to reconstitute the LocalStorage state that set the filters. From that point, the page must be made resilient to invalid filters coming from the LocalStorage or the URL.

@Leodau Leodau changed the title empty security/user state bug Empty security/user state bug Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants