[
https://issues.apache.org/jira/browse/ATLAS-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790903#comment-16790903
]
ASF subversion and git services commented on ATLAS-3041:
--------------------------------------------------------
Commit 8c379617f9a422081fa858e4e4f9458e67e77816 in atlas's branch
refs/heads/branch-1.0 from jajodia
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=8c37961 ]
ATLAS-3041: fix for failure in deleting relationship-def by name
Signed-off-by: Madhan Neethiraj <[email protected]>
(cherry picked from commit 50ff27c7e687670893f4f0320908de4c60d54adc)
> Cannot delete relationship types using the types/typedef/name REST API
> ----------------------------------------------------------------------
>
> Key: ATLAS-3041
> URL: https://issues.apache.org/jira/browse/ATLAS-3041
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 2.0.0
> Reporter: Chris Clohosy
> Assignee: Aadarsh Jajodia
> Priority: Major
> Attachments: ATLAS-3041.patch
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> It appears that relationship types cannot be deleted by doing a HTTP DELETE
> to the types/typedef/name REST API endpoint. Upon further exploration of the
> source code (org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore)
> the problem seems to lie within the deleteTypeByName method - this calls the
> getByName method and from logging we can observe it correctly gets back the
> AtlasRelationshipType. However there is no subsequent check for this type
> within deleteTypeByName, and as AtlasRelationshipTime extends AtlasStructType
> the code then thinks it needs to delete a struct instead of a relationship
> and therefore fails.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)