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

Setting openam-session-timeout-handler-list= in ssoadm set-attr-defs ends up creating a list with one empty item

    XMLWordPrintable

    Details

    • Sprint:
      Sprint 80 - Sustaining, Sprint 81 - Sustaining
    • Support Ticket IDs:

      Description

      As a result of calling

      set-attr-defs --servicename iPlanetAMSessionService --schematype global -a openam-session-timeout-handler-list=
      

      results in an schema entry like

      <AttributeSchema cosQualifier="default"  i18nKey="a123"  isSearchable="no"  name="openam-session-timeout-handler-list"  syntax="string"  type="list" >
                      <DefaultValues><Value></Value></DefaultValues></AttributeSchema>
      

      which can lead to a ClassNotFoundException in the OpenAM Session debug log when SessionService.execSessionTimeoutHandlers() is called.

      amSession:01/27/2015 04:15:54:008 AM NZDT: Thread[pool-2-thread-91,5,main]
      ERROR: Error while executing the following session timeout handler: 
      java.lang.ClassNotFoundException: 
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:190)
          at com.iplanet.dpro.session.service.SessionService$2.run(SessionService.java:2266)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
      

      Proposed fix is to add an additional isEmpty check to the class name before trying to do the Class.forName() call.

      The ssoadm remove-attr-defs command can be used to restore the default schema empty value, for example:

      remove-attr-defs --servicename iPlanetAMSessionService --schematype global -a openam-session-timeout-handler-list
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Time Spent - 3h Remaining Estimate - 5h
                5h
                Logged:
                Time Spent - 3h Remaining Estimate - 5h
                3h