[ 
https://issues.apache.org/jira/browse/RANGER-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805947#comment-17805947
 ] 

Abhishek commented on RANGER-4648:
----------------------------------

Review request available at :- [https://reviews.apache.org/r/74835/]
Thank you

> 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)

Reply via email to