Skip to content

[Saved Queries] Updating then deleting a saved query results in error #212574

@lukasolson

Description

@lukasolson

Kibana version: 9.0.0

Browser version: Chrome

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

Describe the bug:

When attempting to delete a saved query after updating it, an error is thrown.

Steps to reproduce:

  1. Create a saved query (or load an existing one)
  2. Update the saved query
  3. Attempt to delete the saved query

The following error is shown, and the query is not deleted:

Error: Cannot read properties of undefined (reading 'length')

Expected behavior:

The query is deleted with no errors.

Screenshots (if relevant):

Screen.Recording.2025-02-26.at.10.54.54.AM.mov

Any additional context:

I believe this error stems from the namespaces.length check, so this may have to do with spaces. In my setup, I have multiple spaces, and the user I'm logged in as has only discover - all privileges in all spaces.

Metadata

Metadata

Assignees

Labels

Feature:Query BarQuerying and query bar featuresFeature:Unified searchUnified search related tasksTeam:DataDiscoveryDiscover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//bugFixes for quality problems that affect the customer experienceimpact:mediumAddressing this issue will have a medium level of impact on the quality/strength of our product.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions