Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-2231

UserResourceProfileResource.save() looks up existing UserResourceProfile by user_id instead of by (user_id, gateway_id)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17
    • Registry API
    • None

    Description

      From Hipchat:

      So here's what I think is happening. You have a UserResourceProfile in dev.scigap, username smarru.  When dev.seagrid tries to create a UserResourceProfile for smarru, there is a bug in the backend code where it is finding and updating the smarru@dev.scigap record and updating it instead.  Thus dev.seagrid is never able to create a dev.seagrid UserResourceProfile for you, leading to the errors.

      Here's the line where there is the look up by userId only
      https://github.com/machristie/airavata/blob/dd319ce94ffb7db6729c724b0dbe3523bea0b338/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/UserResourceProfileResource.java#L358-L358

      Attachments

        Issue Links

          Activity

            People

              anujbhan Anuj Bhandar
              marcuschristie Marcus Christie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: