Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-1876

SingleSignOnFilter throws NullPointerException if cookieName config item is not provided

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.0
    • Component/s: OpenAM
    • Environment:
      OpenIG using a SingleSignOnFilter

      Description

      Since the changes in OPENIG-1782 to extract out some common components into the OpenIG Toolkit, if no cookieName configuration value is provided to SingleSignOnFilter then a NPE is thrown when the trying to set the cookie value into the headers.

      07:32:41:923 | WARN  | qtp72615125-22 | o.f.o.f.LogAttachedExceptionFilter | Response [Status: 500 Internal Server Error] to `http://app.example.com:8080/examples/servlets` carries an exception [txId:89a37ce0-8198-4023-b492-0a897899c686-123]
      java.lang.NullPointerException: null
      	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1192)
      	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1186)
      	at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:376)
      	at java.util.TreeMap.getEntry(TreeMap.java:345)
      	at java.util.TreeMap.get(TreeMap.java:278)
      	at java.util.Collections$UnmodifiableMap.get(Collections.java:1454)
      	at org.forgerock.http.protocol.Headers.put(Headers.java:137)
      	at org.forgerock.openig.tools.InsertSsoTokenHeaderFilter.filter(InsertSsoTokenHeaderFilter.java:47)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
      	at org.forgerock.openig.tools.ApiVersionProtocolHeaderFilter.filter(ApiVersionProtocolHeaderFilter.java:57)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
      	at org.forgerock.json.resource.http.CrestAdapter.handleAction(CrestAdapter.java:169)
      	at org.forgerock.openig.openam.SingleSignOnFilter.handleProtectedResource(SingleSignOnFilter.java:152)
      

       This configuration item used to default to iPlanetDirectoryPro if it wasn't supplied.

        Attachments

          Activity

            People

            • Assignee:
              markdr Mark de Reeper
              Reporter:
              markdr Mark de Reeper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: