wazuh / wazuh-dashboard-plugins

Plugins for Wazuh Dashboard
https://wazuh.com/
GNU General Public License v2.0
432 stars 180 forks source link

App crashes when filter is created in the Events section of a Compliance or MITRE module #3052

Closed jctello closed 3 years ago

jctello commented 3 years ago
Wazuh Elastic Rev
4.1.1 7.10.0 4102

Description If a filter is created by clicking on the + or - symbol on the value of any entry within the Events section of a Compliance dashboard (PCI-DSS, GDPR, HIPPA, etc) or the MITRE dashboard the application flashes an error and goes back to the Modules Directory.

Steps to reproduce

  1. Go to PCI_DSS
  2. Click on Events
  3. Click on the + button for any field's value
  4. See error

Screenshots output crashmessage

Additional context This has been observed in Firefox and Chromium on Linux and Chrome on Windows. This is not observed in versions 4.0.4 and prior.

Browser's console output is:

TypeError: item.meta.params is undefined
    next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.4.js:1
    callInDigest https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.4.js:1
    $eval https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:426
    $apply https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:426
    callInDigest https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.4.js:1
    next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.4.js:1
    __tryOrUnsub https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21
    next https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21
    _next https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21
    next https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21
    next https://192.168.0.105/35949/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:283
    handleStateUpdate https://192.168.0.105/35949/bundles/plugin/data/data.plugin.js:1
    addFilters https://192.168.0.105/35949/bundles/plugin/data/data.plugin.js:1
    _callee10$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    kibana_discover_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    kibana_discover_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    kibana_discover_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    loadFilters https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _callee$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    common_data_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    promise callback*common_data_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    common_data_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    common_data_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    af https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    assignFilters https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _callee$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    react_services_vis_factory_handler_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    promise callback*react_services_vis_factory_handler_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    react_services_vis_factory_handler_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    react_services_vis_factory_handler_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    buildOverviewVisualizations https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _callee3$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    overview_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    overview_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    overview_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    updateSelectedAgents https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _callee5$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    overview_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    promise callback*overview_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _next https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    overview_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    overview_asyncToGenerator https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    switchTab https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    _callee8$ https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
    tryCatch https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    invoke https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    method https://192.168.0.105/35949/bundles/plugin/opendistroQueryWorkbenchKibana/opendistroQueryWorkbenchKibana.plugin.js:1
    overview_asyncGeneratorStep https://192.168.0.105/35949/bundles/plugin/wazuh/wazuh.chunk.9.js:5
kbn-ui-shared-deps.js:426:78980
frankeros commented 3 years ago

This issue was fixed with another fix in #3008.