Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-140771

OpenIdConnectTokenRefreshScheduler drops error when we modify the refresh time from osgi.config file

    Details

    • Fix Priority:
      3

      Description

      Summary
      When we update the OpenId Connect settings using osgi config file from running Portal we receive the following error

      Repro

      1. Copy the attached file into the running portal's osgi/configs folder ( com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration~custom.config )

      Actual results
      Error is thrown into logs, no change of refresh token time at System Settings / OIDC settings

      Expected results
      Refresh token time is updted and
      OIDC is either enabler or disabled according the config file

      Log/Error Message

      2021-10-14 12:51:05.934 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration~valami)][OpenIdConnectTokenRefreshScheduler:93] bundle com.liferay.portal.security.sso.openid.connect.impl:6.0.13 (93)[com.liferay.portal.security.sso.openid.connect.internal.scheduler.OpenIdConnectTokenRefreshScheduler(36)] : factory pid com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration, but this pid is already supplied as a singleton: [com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration] at index 0
      2021-10-14 12:51:05.937 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration~valami)][LogService:93] Unexpected problem delivering configuration event to [org.osgi.service.cm.ConfigurationListener, id=84, bundle=56/file:/Users/lovas.gabor/Downloads/_temp/liferay-portal-master-private/osgi/static/org.apache.felix.configadmin.jar?protocol=jar&static=true] {org.osgi.service.cm.ConfigurationAdmin}={service.description=Configuration Admin Service Specification 1.6 Implementation, service.id=51, service.bundleid=56, service.scope=bundle, service.vendor=The Apache Software Foundation, service.pid=org.apache.felix.cm.ConfigurationAdmin}
      java.lang.IllegalStateException: Factory pid supplied after all non-factory configurations supplied com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration
      	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.checkFactoryPidIndex(ConfigurableComponentHolder.java:537) ~[?:?]
      	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:368) ~[?:?]
      	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:355) ~[?:?]
      	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:115) ~[?:?]
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1685) [bundleFile:?]
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1637) [bundleFile:?]
      	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [bundleFile:?]
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [bundleFile:?]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              gabor.lovas Gábor Lovas
              Participants of an Issue:
              Recent user:
              Nóra Szél
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                14 weeks, 4 days ago

                  Packages

                  Version Package