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

ssoadm create-metadata-templ fails with Exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0.0
    • Fix Version/s: 11.0.1, 12.0.0
    • Component/s: CLI
    • Labels:

      Description

      When trying to use the ssoadm.jsp according to:
      https://wikis.forgerock.org/confluence/display/openam/SAMLv2+IDP+Proxy+Part+1.+Setting+up+a+simple+Proxy+scenario
      The following stacktrace can be seen in the logs:

      Caused by: java.lang.NullPointerException
              at com.sun.identity.federation.cli.CreateMetaDataTemplate.buildConfigTemplate(CreateMetaDataTemplate.java:573)
              at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleSAML2Request(CreateMetaDataTemplate.java:154)
              at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleRequest(CreateMetaDataTemplate.java:127)
              at com.sun.identity.cli.SubCommand.execute(SubCommand.java:291)
              at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:212)
              at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:134)
              at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:573)
              at com.sun.identity.cli.WebCLIHelper.processRequest(WebCLIHelper.java:151)
              at com.sun.identity.cli.WebCLIHelper.getHTML(WebCLIHelper.java:92)
              at org.apache.jsp.ssoadm_jsp._jspService(ssoadm_jsp.java:131)
      

      Using the command from the command line should result in a similar failure as well.
      This bug is due to recent changes from OPENAM-2966 (the empty entityID is no longer a valid value), and the original cause is OPENSSO-5297. While removing the bad code indeed fixes the problem, in order to provide some protection, we should probably introduce a different delegation checking mechanism in the code (that works on both OpenAM and CLI side).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major
                Reporter:
                peter.major Peter Major
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: