[ https://issues.apache.org/jira/browse/RANGER-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abhishek updated RANGER-4648: ----------------------------- 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 was: Add assertions in the form to restrict the datashare / dataset name length. If adding assertions is not possible, then a proper error message has to be displayed stating that the datashare / dataset name has to be limited (This behvaiour is already present in the policy creation form) > Return proper error message if GDS entities name is longer than 512 > characters and assertions in the UI form as well > -------------------------------------------------------------------------------------------------------------------- > > Key: RANGER-4648 > URL: https://issues.apache.org/jira/browse/RANGER-4648 > Project: Ranger > Issue Type: Sub-task > Components: admin > Reporter: Abhishek > Assignee: Abhishek > Priority: Major > Labels: ranger-react > > 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 -- This message was sent by Atlassian Jira (v8.20.10#820010)