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

OAuth provider does not work with subrealms

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5.4, 10.0.0-EA
    • 9.5.5, 10.0.0
    • oauth
    • Rank:
      1|hznauf:

      Description

      The following exception can occur when using OAuth with subrealms:
      org.apache.jasper.JasperException: javax.servlet.ServletException: Get attributes failed
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:536)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: javax.servlet.ServletException: Get attributes failed
      at org.apache.jsp.oauth.userconsole_jsp._jspService(userconsole_jsp.java:163)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
      ... 18 more

      The code fails, because it tries to get uid first from attributes, then call read with the username, but the read call requires the correct realm value as well.

        Attachments

          Activity

            People

            peter.major Peter Major [X] (Inactive)
            peter.major Peter Major [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: