Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Path Input Dialog Closes when validation failed #21214

Open
kmerz opened this issue Dec 18, 2024 · 0 comments
Open

JSON Path Input Dialog Closes when validation failed #21214

kmerz opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@kmerz
Copy link
Member

kmerz commented Dec 18, 2024

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)

  1. Go to the Inputs Page
  2. Open the JSON Path Input, creating a modal
  3. Add a name for the input
  4. for JSON path of data to extract fill out $.
  5. 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)
@kmerz kmerz added the bug label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant