Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-5786

Creating an UMA resource in the AS sends an error message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.0.0
    • Component/s: UMA, XUI
    • Labels:
    • Environment:
      OpenAM 13.0 Build 13252
      Embedded Conf store and User, and everything
    • Sprint:
      Sprint 83 - Team Tesla

      Description

      When creating a resource set in OpenAM using the REST interface, an error message is received from time to time (well, most of the time, it sometimes works when one "updates" the Policy Agent Config, i.e. a simple save can do it) instead of receiving the resource set id of the resource just created.

      1. Get a PAT
      $ curl --request POST --header "Content-Type: application/x-www-form-urlencoded" --data "client_id=RSClient&client_secret=cangetin&grant_type=password&scope=uma_protection&username=alice&password=changeit" http://as.uma.com:8080/openam/oauth2/access_token

      {"scope":"uma_protection","expires_in":299,"token_type":"Bearer","refresh_token" ;:"05478ce6-55a0-4646-a06b-3d1709aa162c","access_token":"38b470e6-28a0-48ad-8941-d5f580b58aca"}

      2. Add a resource set
      $ curl --request POST --header "Authorization: Bearer 38b470e6-28a0-48ad-8941-d5f580b58aca" -d '

      { "name": "example2", "scopes": [ "http://rs.uma.com:9001/data/scopes/view"; ], "type": "http://rs.uma.com:9001/data/album"; }

      ' http://as.uma.com:8080/openam/oauth2/resource_set

      3. Instead of receiving this:

      {"_id":"5d968665-7e77-4eed-baab-81860dcb85fc18","user_access_policy_uri":"http://as.uma.com:8080/openam/XUI/#uma/share/5d968665-7e77-4eed-baab-81860dcb85fc18";}

      Almost always, one gets:

      {"error":"server_error","error_description":null}

      A restart of the OpenAM, and sometimes re-saving the OAuth2/OIDC Client can fix it, but it is most of the time consistent with the error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamesphillpotts James Phillpotts
                Reporter:
                victor Victor Ake
                QA Assignee:
                Alex Walker [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: