elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.47k stars 8.04k forks source link

Kibana Security Alerts App: Error: filterQuery.replaceAll is not a function Chromium Version 95.0.4638.54 #116587

Open mark-lsd opened 2 years ago

mark-lsd commented 2 years ago

Kibana version: 7.15.1

Elasticsearch version: 7.15.1

Server OS version: Ubuntu 20.04

Browser version: Chromium Version 95.0.4638.54 (Official Build) (64-bit) Linux

Browser OS version: Ubuntu 20.04

Original install method (e.g. download page, yum, from source, etc.): Running locally from tar.gz to verify Problem originally encountered running ECK on Openshift 4.6

Describe the bug: When accessing Security/Alerts via Kibana Security app:

Error: filterQuery.replaceAll is not a function at replaceStatusField (http://localhost:5601/44185/bundles/plugin/timelines/1.0.0/timelines.chunk.0.js:7:82022) at buildCombinedQuery (http://localhost:5601/44185/bundles/plugin/timelines/1.0.0/timelines.chunk.0.js:7:81244) at TGridIntegratedComponent (http://localhost:5601/44185/bundles/plugin/timelines/1.0.0/timelines.chunk.2.js:7:83538) at gs (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761) at ia (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:68106) at ta (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:67925) at ea (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:67644) at Pa (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:111133) at Il (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334) at Nl (http://localhost:5601/44185/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)

Steps to reproduce: Download elastic and kibana tar.gz Unzip Set security.enabled in elasticsearch.yml, set encryptionkey in kibana.yml, generate passwords Login to Kibana and try to open Security/Alerts

Expected behavior: No Error, Alerts app loads

Screenshots (if relevant):

Errors in browser console (if relevant): Same as above.

Provide logs and/or server output (if relevant): Nothing logged on info level

Any additional context: Discovered after upgrading to 7.15.1 from 7.14.0 on ECK Replicated using clean local instance on Ubuntu 20.04

Key appears to be browser version - does not occur in Google Chrome or Firefox

elasticmachine commented 2 years ago

Pinging @elastic/security-solution (Team: SecuritySolution)

michaelolo24 commented 2 years ago

Hi @mark-lsd ! Thanks for pointing this issue out. This was fixed for 7.15.2 😄 . It's actually a duplicate of the issue here: https://github.com/elastic/kibana/pull/114481 .

TLDR; You can update to 7.15.2 or alternatively upgrade your browser to match one of the ones provided on the compatibility table at the bottom of the page here: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll