Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
The max length for the Datashare/Dataset/Project names is 512.
Currently, there are no assertions to check if the name is longer than 512 characters or not.
In such scenarios, when the request was made with a long name, the error message was not descriptive as the error message was coming from the database due to data insertion failing.
Validations have to be performed at two levels:-
1. UI level
Display an error message if the name is longer than 512 characters and prevent the form submission
2. Server Side
Check if the name length is greater than 512 characters, if yes, return a proper error message