[ https://issues.apache.org/jira/browse/ATLAS-4336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Mestry updated ATLAS-4336: ----------------------------------- Description: *Background* Currently type can be created/updated with an attribute whose name starts with "__" like __guid. Example: {code:java} "entityDefs": [ { "name": "myType", "superTypes": [], "serviceType": "atlas_core", "typeVersion": "1.0", "attributeDefs": [ { "name": "__myAttrName", "typeName": "string", "cardinality": "SINGLE", "isIndexable": true, "isOptional": true, "isUnique": false } ] } ] {code} This gets mixed up with system attributes. Hence attribute names should not be allowed to be started with double underscore or following attribute names (system attribute names) should be restricted when a type is created or updated : __classificationNames __modifiedBy __createdBy __state __typeName __modificationTimestamp __propagatedClassificationNames __customAttributes __isIncomplete __guid __timestamp __labels was: Currently type can be updated with an attribute whose name starts with "__" like __guid. This gets mixed up with system attributes. Hence attribute names should not be allowed to be started with double underscore or following attribute names (system attribute names) should be restricted when a type is created or updated : __classificationNames __modifiedBy __createdBy __state __typeName __modificationTimestamp __propagatedClassificationNames __customAttributes __isIncomplete __guid __timestamp __labels > Restrict attributes of type to be created starting with double underscore > ------------------------------------------------------------------------- > > Key: ATLAS-4336 > URL: https://issues.apache.org/jira/browse/ATLAS-4336 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Reporter: Sharmadha S > Assignee: Mandar Ambawane > Priority: Major > Attachments: ATLAS-4336.patch > > > *Background* > Currently type can be created/updated with an attribute whose name starts > with "__" like __guid. > Example: > {code:java} > "entityDefs": [ { > "name": "myType", > "superTypes": [], > "serviceType": "atlas_core", > "typeVersion": "1.0", > "attributeDefs": [ > { > "name": "__myAttrName", > "typeName": "string", > "cardinality": "SINGLE", > "isIndexable": true, > "isOptional": true, > "isUnique": false } > ] > } > ] > {code} > This gets mixed up with system attributes. > Hence attribute names should not be allowed to be started with double > underscore or following attribute names (system attribute names) should be > restricted when a type is created or updated : > __classificationNames > __modifiedBy > __createdBy > __state > __typeName > __modificationTimestamp > __propagatedClassificationNames > __customAttributes > __isIncomplete > __guid > __timestamp > __labels -- This message was sent by Atlassian Jira (v8.3.4#803005)