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

External UMA store fails on resource creation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0.2, 6.5.2.1
    • Fix Version/s: 6.0.1, 5.5.2, 7.0.0, 6.5.3
    • Component/s: UMA
    • Labels:
    • Environment:
      AM 6.5.0.2
    • Sprint:
      AM Sustaining Sprint 71, AM Sustaining Sprint 72
    • Story Points:
      5
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description, Yes but I used my own steps. (If so, please add them in a new comment)

      Description

      Bug description

      UMA using an External Resource Label store fails when trying to create a resource. 

      How to reproduce the issue

      1. Create External UMA store, note changes required in 
        https://backstage.forgerock.com/docs/am/6.5/uma-guide/#prepare-uma-store
        https://bugster.forgerock.org/jira/browse/OPENAM-15850
      2. Setup Oauth 
        https://backstage.forgerock.com/docs/am/6.5/uma-guide/#uma-set-up-procedures
      3. Register Resources https://backstage.forgerock.com/docs/am/6.5/uma-guide/#register-resource-sets-policies
      4. This is the step that fails with: {"code":500,"reason":"Internal Server Error","message":"Unable to provision, see the following errors:\n\n1) Error injecting constructor, java.util.NoSuchElementException\n  at org.forgerock.openam.oauth2.resources.labels.UmaLabelsStore.<init>(Unknown Source)\n  while locating org.forgerock.openam.oauth2.resources.labels.UmaLabelsStore\n    for the 1st parameter of org.forgerock.openam.oauth2.resources.ResourceSetLabelRegistration.<init>(Unknown Source)\n  while locating org.forgerock.openam.oauth2.resources.ResourceSetLabelRegistration\n    for the 5th parameter of org.forgerock.openam.uma.ResourceSetRegistrationEndpoint.<init>(Unknown Source)\n  while locating org.forgerock.openam.uma.ResourceSetRegistrationEndpoint\n\n1 error"}
      5. You can also change all UMA stores to Remote, expect for the UMA Resource Label Store, and this will work without the error. Only the UMA resource Label store causes the failure when set to Remote.
      Expected behaviour
      The UMA resource is created in the remote store
      Current behaviour
      There is a 500 error thrown by the Label Store

      Work around

      Use Local Resource Label Store

      Code analysis

      OPTIONAL - If you already investigated the code, please share your finding here (remove this text)

      org.forgerock.$className.java
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                william.hepler William Hepler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: