mattermost / mattermost-plugin-legal-hold

Plugin to create and manage legal holds in Mattermost
Other
5 stars 2 forks source link

Validations in plugin configs #60

Open AayushChaudhary0001 opened 1 month ago

AayushChaudhary0001 commented 1 month ago

This issue consists of multiple issues inside this regarding the data validation and data allowed to enter in multiple plugin config fields.

### Issue 1: User is able to enter and save empty value in some mandatory fields through a space character input.

Steps to reproduce:

  1. Enter the space character and save the desired config.

The user is able to save the entry in the desired config field which actually denotes a null entry.

Config fields where the issue is reproduced:

### Issue 2: User is not able to save the config field if the entered data contains space character as prefix.

Steps to reproduce:

  1. Enter any value in the desired field using space character as prefix.

The user is not able to save the desired entry in the config field or receives an irrelevant error.

Config fields where the issue is reproduced:

(I will attach a relevant screenshot for the same, currently facing some issues)