Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2396

Rest request to list spaces fails when RHPAM is integrated with RHSSO using SAML protocol

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30), 2020 Week 04-06 (from Jan 20)
    • Steps to Reproduce:
      Hide
      • Install and integrate RHPAM 7.5.0 with RHSSO 7.3.4 using SAML protocol and SAML adapter for EAP 7.
      • Try to list spaces using REST API:

      *****************************************
      $ curl -u 'rhpamadmin:rhpamadmin' -H "accept: application/json" -X GET "http://localhost:8080/business-central/rest/spaces"
      *****************************************

      Show
      Install and integrate RHPAM 7.5.0 with RHSSO 7.3.4 using SAML protocol and SAML adapter for EAP 7. Try to list spaces using REST API: ***************************************** $ curl -u 'rhpamadmin:rhpamadmin' -H "accept: application/json" -X GET "http://localhost:8080/business-central/rest/spaces" *****************************************
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Attempt to list spaces in RHPAM using REST API and the following command:

      ********************************************
      $ curl -u 'rhpamadmin:rhpamadmin' -H "accept: application/json" -X GET "http://localhost:8080/business-central/rest/spaces"
      ********************************************

      fails with the following error:

      *********************************************
      2019-11-25 11:56:59,697 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /business-central/rest/spaces: org.jboss.resteasy.spi.UnhandledException: org.jboss.weld.exceptions.IllegalProductException: WELD-000052: Cannot return null from a non-dependent producer method: Producer for Producer Method [User] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @RequestScoped public org.kie.workbench.screens.workbench.backend.impl.DefaultApplicationScopedProducer.getIdentity()] declared on Managed Bean [class org.kie.workbench.screens.workbench.backend.impl.DefaultApplicationScopedProducer] with qualifiers [@Any @Default]
      *********************************************

      See attached full log - server_log.zip.

      This works fine when OpenID protocol and adapter is used.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  r_anand Rishiraj Anand
                  Reporter:
                  ederign Eder Ignatowicz
                  Tester:
                  Tomas David
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: