graylog2-server
graylog2-server copied to clipboard
JSON Path Input Dialog Closes when validation failed
Expected Behavior
If a validation of a form to create a JSON Path Input fails, it should remain open so a user can correct the mistake
Current Behavior
The validation happens on the server side after the modal is closed. The error message is not helpful, and the user must start guessing the actual problem.
Possible Solution
Validate the JSON Path parameter on the frontend side to prevent closing the modal.
Steps to Reproduce (for bugs)
- Go to the Inputs Page
- Open the JSON Path Input, creating a modal
- Add a name for the input
- for JSON path of data to extract fill out
$. - Try to save the Input
Your Environment
- Graylog Version: Graylog 6.2.0-SNAPSHOT+7845ab9 on server (Eclipse Adoptium 17.0.13 on Linux 5.15.0-1071-aws)