Dharshana M Krishnamoorthy created ATLAS-3985: -------------------------------------------------
Summary: Not able to assign classification with mandatory attribute of type "array<string>" Key: ATLAS-3985 URL: https://issues.apache.org/jira/browse/ATLAS-3985 Project: Atlas Issue Type: Bug Components: atlas-core, atlas-webui Reporter: Dharshana M Krishnamoorthy Attachments: Screenshot 2020-10-07 at 1.40.43 PM.png, Screenshot 2020-10-07 at 1.41.17 PM.png Create a classification that has mandatory attribute of type "*array<string>*" via REST api {code:java|title=Create classification with payload:} { "enumDefs": [], "structDefs": [], "classificationDefs": [ { "category": "CLASSIFICATION", "guid": "8996315b-b5fe-48c6-b9d0-4668fhkfd21af", "createdBy": "hrt_qa", "updatedBy": "hrt_qa", "createTime": 1602057743077, "updateTime": 1602057743077, "version": 1, "name": "read_auth_test_tag1", "description": "read_auth_test_tag1", "typeVersion": "1.0", "attributeDefs": [ { "name": "type_long_min", "typeName": "long", "isOptional": true, "cardinality": "SINGLE", "valuesMinCount": 0, "valuesMaxCount": 1, "isUnique": false, "isIndexable": false }, { "name":"type_arr_list", "typeName":"array<string>", "isOptional":false, "cardinality":"LIST", "valuesMinCount":1, "valuesMaxCount":2147483647, "isUnique":false, "isIndexable":false }, { "name":"type_set", "typeName":"array<string>", "isOptional":false, "cardinality":"SET", "valuesMinCount":1, "valuesMaxCount":2147483647, "isUnique":false, "isIndexable":false } ], "superTypes": [], "entityTypes": [], "subTypes": [] } ], "entityDefs": [], "relationshipDefs": [], "businessMetadataDefs": [] } {code} Assign the same to an entity. The assignment fails as the attributes of type "array<string>" are not visible on UI {code:java|title=error message} {"errorCode":"ATLAS-400-00-01A", "errorMessage":"invalid parameters: read_auth_test_tag1.type_arr_list: mandatory attribute value missing in type read_auth_test_tag1"} {code} The assignment fails via both UI and rest api. In UI creation of attribute of such a type is not allowed but via rest api it is possible. -- This message was sent by Atlassian Jira (v8.3.4#803005)