Graylog2 / Graylog2/graylog2-server

Validate required fields on install content pack

Open
#5,596 0 comments 0 reactions 0 assignees View on GitHub
bug content-packs triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior
Installing a content pack provides feedback when a field is not fulfilled and does not reset the form in the process.

## Current Behavior
Installing a content pack without providing all required fields looks like the form is submitted, but it isn't. The modal closes and there is no clear indication of what happened. All inputs will be reset if the modal is opened again.

![install-required](https://user-images.githubusercontent.com/716185/51755597-5d706480-20bf-11e9-8dd1-b754068713ae.gif)

There are no errors in the browser's console or the server logs.

## Steps to Reproduce (for bugs)
1. Create a content pack with parameters, leave some default values empty, as they may be optional
2. Install the content pack and don't fill one of the inputs
3. Check that the content pack install was not submitted to the server and no error is displayed
4. Opening the modal again shows all default values again

## Your Environment
* Graylog Version: Graylog 3.0.0-rc.1-SNAPSHOT (4a8ae47)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.