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

ASF subversion and git services commented on ATLAS-3695:
--------------------------------------------------------

Commit 7c2c83a528b4c52c15a1160cca70a2604ec3c687 in atlas's branch 
refs/heads/branch-2.0 from Mandar Ambawane
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=7c2c83a ]

ATLAS-3695 [Business Metadata] Special characters are being allowed in 
Attribute Name

Signed-off-by: Sarath Subramanian <sar...@apache.org>
(cherry picked from commit e6de42b7a3da6ebc6326813108d2b0cbcacac0f1)


> [Business Metadata] Special characters are being allowed in Attribute Name
> --------------------------------------------------------------------------
>
>                 Key: ATLAS-3695
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3695
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core, atlas-webui
>            Reporter: Umesh Padashetty
>            Priority: Major
>         Attachments: Screenshot 2020-03-26 at 8.09.45 PM.png, Screenshot 
> 2020-03-26 at 8.10.11 PM.png
>
>
> Special characters are not being allowed in the Business Metadata Name, but 
> are being allowed in the Attribute Name and Description.
> Having special characters in Description should be fine, but not in 
> Attributes name. Attached screenshots. This is reproducible both from UI and 
> API. Screenshots attached.
> {code:java}
> curl -X POST \
>   'https://<host>:31443/api/atlas/v2/types/typedefs?type=business_metadata' \
>   -H 'cache-control: no-cache' \
>   -H 'content-type: application/json' \
>   -H 'postman-token: e91ead11-8ff2-8919-3d3e-133a213cd226' \
>   -H 'x-xsrf-header: \"\"' \
>   -d 
> '{"enumDefs":[],"structDefs":[],"classificationDefs":[],"entityDefs":[],"businessMetadataDefs":[{"category":"BUSINESS_METADATA","createdBy":"admin","updatedBy":"admin","version":1,"typeVersion":"1.1","name":"Special
>  Character 
> Test","description":"^%&amp;*()*&amp;^*()","attributeDefs":[{"name":"&(*^%&*()*&^%$^&*()","typeName":"string","isOptional":true,"cardinality":"SINGLE","valuesMinCount":0,"valuesMaxCount":1,"isUnique":false,"isIndexable":false,"options":{"maxStrLength":"50"}}]}]}'
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to