Abhay Kulkarni created RANGER-2146:
--------------------------------------

             Summary: Tag attribute type needs to be initialized to a non-empty 
string
                 Key: RANGER-2146
                 URL: https://issues.apache.org/jira/browse/RANGER-2146
             Project: Ranger
          Issue Type: Bug
          Components: tagsync
    Affects Versions: 0.7.1, 1.0.0, master
            Reporter: Abhay Kulkarni
            Assignee: Abhay Kulkarni
             Fix For: master, 1.1.0


As a part of tagsync updates for handling Atlas V2 APIs, a regression was 
introduced which set tag attribute type to an empty string when creating 
service-tags structure from a AtlasEntityNotification object. When saving 
attribute-definition to Oracle DB, this empty string tag was treated as a null, 
which caused the database insert to fail (type column is defined as non-null 
field in schema forĀ x_tag_attr_def table).

As tag attribute type values are uninterpreted in Ranger, it is safe to set 
attribute type to 'string' instead of to an empty string.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to