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

Default factory configurations created by OSGI configurator cannot be overridden by using config files

    Details

      Description

      Below are two similar scenarios, but each scenario helps to illustrate a different issue that needs to be accounted for.

      Steps to Reproduce #1 - Re-create default using config file after deleting entry

      1. Startup Liferay
      2. Navigate to System Settings > API Authentication > Tunnel Authentication
      3. Delete default entry: /api/liferay/do
      4. Create osgi/configs/com.liferay.portal.security.auth.verifier.internal.tunnel.configuration.TunnelAuthVerifierConfiguration~default.config with the content:
        enabled="false"
        hostsAllowed="127.0.0.1,SERVER_IP"
        serviceAccessPolicyName="SYSTEM_USER_PASSWORD"
        urlsIncludes="/api/liferay/do"
        
      5. Wait ~10 seconds
      6. Navigate to System Settings > API Authentication > Tunnel Authentication

      Expected Result
      The default entry is re-added

      Actual Result
      The default entry is not re-added

      Steps to Reproduce #2 - Re-create default using config file on startup after deleting entry

      1. Startup Liferay w/ fix for ~*.config
      2. Navigate to System Settings > API Authentication > Tunnel Authentication
      3. Delete default entry: /api/liferay/do
      4. Shutdown Liferay and clear osgi/state
      5. Create osgi/configs/com.liferay.portal.security.auth.verifier.internal.tunnel.configuration.TunnelAuthVerifierConfiguration~default.config with the content:
        enabled="false"
        hostsAllowed="127.0.0.1,SERVER_IP"
        serviceAccessPolicyName="SYSTEM_USER_PASSWORD"
        urlsIncludes="/api/liferay/do"
        
      6. Startup Liferay
      7. Navigate to System Settings > API Authentication > Tunnel Authentication

      Expected Result
      The default entry is re-added

      Actual Result
      Two entries have been added

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              eric.yan Eric Yan
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Tina Tian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 3 weeks ago

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  7.4.2 CE GA3 DXP 7,4
                  7.4.13 DXP GA1
                  Master