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

[Security] Uncaught TypeError: Cannot read property 'position' of null error during role creation #33053

Closed
inqueue opened this issue Mar 12, 2019 · 9 comments
Labels
bug Fixes for quality problems that affect the customer experience EUI Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v6.7.0 v7.0.0

Comments

@inqueue
Copy link
Member

inqueue commented Mar 12, 2019

Kibana version: 6.7.0 build: 20107

Elasticsearch version: 6.7.0

Original install method (e.g. download page, yum, from source, etc.): yum/RPM

Describe the bug:
When creating a new security role, the browser is immediately redirected to a Something went wrong error page after updating the Indices field under Index privileges.

Screen Shot 2019-03-12 at 3 57 07 PM

Uncaught TypeError: Cannot read property 'position' of null

It happens with a particular index pattern *pcf*, though that could be a coincidence.

Steps to reproduce:

  1. Enter a role name
  2. Focus the Indices field under Index privileges and type *pcf*
  3. Hit the tab key twice

kibana_role_bug 2019-03-12 16_54_50

@inqueue inqueue added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v6.7.0 labels Mar 12, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security

@azasypkin
Copy link
Member

Hmm, can't reproduce this on the latest 6.7 branch locally. @inqueue do you know Kibana git revision your build is based on?

@inqueue
Copy link
Member Author

inqueue commented Mar 13, 2019

Hi @azasypkin, I just know it is build 20107. It was difficult for me to reproduce and having both the starting and trailing * seems to be key since it does not happen with any other pattern.

@inqueue
Copy link
Member Author

inqueue commented Mar 13, 2019

BUILD 20107
COMMIT 617affef

@cjcenizal cjcenizal added the bug Fixes for quality problems that affect the customer experience label Mar 13, 2019
@azasypkin
Copy link
Member

Hi @azasypkin, I just know it is build 20107. It was difficult for me to reproduce and having both the starting and trailing * seems to be key since it does not happen with any other pattern.

Aha, right, somehow missed the leading * part , now I see it, thanks! Investigating...

@azasypkin
Copy link
Member

azasypkin commented Mar 13, 2019

Apparently this issue will happen to any EuiComboBox if you type option name completely and then press Tab twice. @chandlerprall pointed to two PRs that fixed that issue in EUI already elastic/eui#1576 and elastic/eui#1619.

So we're waiting for these to be backported to EUI 6.10.5: elastic/eui#1722 and Kibana should have this fix in 6.7.1 and 7.0.1

@chandlerprall
Copy link
Contributor

This should be fixed in the 6.7 and 7.0 branches

@kobelb
Copy link
Contributor

kobelb commented Mar 19, 2019

Thanks @chandlerprall! I'll confirm here momentarily and close out this issue.

@kobelb kobelb closed this as completed Mar 19, 2019
@cchaos cchaos added EUI and removed Feature:EUI labels Aug 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-design (EUI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience EUI Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v6.7.0 v7.0.0
Projects
None yet
Development

No branches or pull requests

7 participants