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

V2 APIs : Entity Resource GET query with classification returns 500.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8-incubating, 1.0.0
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    Description

      1. Created a tag tag1.
      2. Created a table table1.
      3. tag1 is not associated to table1
      The following query returns 500 Internal server error.

      /api/atlas/v2/entity/guid/<guid of table1>/classification/tag1
      

      Exception thrown :
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      Attached the complete exception trace thrown in application logs.

      4. Now created another tag tag2 and associated table1 to tag2.
      5. Now the same query /api/atlas/v2/entity/guid/<guid of table1>/tag1 returns expected error code 404.

      That is , when any tag is already associated to the entity, search for the unassociated tag throws 404 , else 500.

      Attachments

        1. ATLAS-1819.patch
          1 kB
          Ruchi Solani
        2. ArrayOutOfBoundsException.txt
          9 kB
          Sharmadha S

        Activity

          People

            ruchi_solani Ruchi Solani
            sharmadhas Sharmadha S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: