Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3041

Cannot delete relationship types using the types/typedef/name REST API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.2.0, 2.0.0
    • atlas-core
    • None

    Description

      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.

      Attachments

        1. ATLAS-3041.patch
          5 kB
          Aadarsh Jajodia

        Issue Links

          Activity

            People

              django Aadarsh Jajodia
              ccdigix Chris Clohosy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h