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

Registering UMA resource sometimes gives error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.0.0
    • Component/s: UMA
    • Environment:
      Centos 7.1
      Tomcat 7
      Oracle Java 8
      Happens on both development PCs and AWS environment
    • Sprint:
      Sprint 89 - Team Tesla, Sprint 90 - Team Tesla, Sprint 91 - Team Tesla

      Description

      When making a register resource request like below, an error is sometimes returned:

      Request:

      curl -sS \
      --insecure \
      --request POST \
      --header "Authorization: Bearer ${PAT}" \
      --data \
      '{
      "name" : "'${NAME}'",
      "icon_uri" : "http://www.example.com/icons/flower.png",
      "scopes" : [
      "http://photoz.example.com/dev/scopes/view",
      "http://photoz.example.com/dev/scopes/all"
      ],
      "type" : "http://www.example.com/rsets/photoalbum"
      }' \
      https://${SSO_HOST}/sso/oauth2/resource_set/

      Response:

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

      There is an exception in the Entitlement logs and in the Catalina log (see attached).

      We are using OpenAM 13.0.0-SNAPSHOT Build 14532 (2015-July-09 03:09)

      Once there is an error, there will always be an error. Restarting tomcat often resolves the issue. If there is a successful response, then there will usually be more successful responses. The error seems to happen most often after a re-deploy or restart.

      It seems similar to an existing JIRA OPENAM-5786 but this has been marked as fixed.

      Please let me know if you need more information

        Attachments

        1. catalina.out
          0.0 kB
        2. debug.tar.gz
          663 kB
        3. logs-20150716.zip
          812 kB

          Activity

            People

            • Assignee:
              jamesphillpotts James Phillpotts
              Reporter:
              jamiec@datacom.co.nz Jamie Cavanaugh [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: