Graylog2 / Graylog2/graylog2-server
Hitting "Enter" when searching a MongoDB-type lookup table data adapter's entries saves data adapter config
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
## 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?
Contributor guide
Assessment
This issue has not been assessed yet.