Skip to content

Hitting "Enter" when searching a MongoDB-type lookup table data adapter's entries saves data adapter config #25605

@coffee-squirrel

Description

@coffee-squirrel

Expected Behavior

When searching a MongoDB-type lookup table data adapter's entries via the search input in the Configured keys and values section, hitting Enter after typing a query should not trigger a save of the data adapter's configuration.

Current Behavior

When searching a MongoDB-type lookup table data adapter's entries via the search input in the Configured keys and values section, hitting Enter after typing a query triggers a save of the data adapter's configuration.

Steps to Reproduce (for bugs)

  1. Have a MongoDB-type lookup table data adapter
  2. Navigate to the data adapter's edit page (/system/lookuptables/data_adapter/$NAME/edit)
  3. Click in the Configured keys and values section's Enter search query... input and hit Enter
  4. Note the data adapter config saves and you get redirected to the Data Adapters for Lookup Tables (/system/lookuptables/data_adapters) page (with a Data Adapter updated successfully notification)

Context

Using the Enter key to submit a search is common-- so even though this particular section updates the results as the query is written, a user hitting Enter should be handled gracefully (i.e. not result in an unexpected data adapter config save).

Your Environment

  • Graylog Version: 7.0.4
  • Browser version: Firefox 149

Checklist

[] This issue fix need to be backported.
[] Does this issue have security implications?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions