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

When upgrading from 6.x to 7.0, default OpenSSO configurations are inserted into portal preferences.

    Details

      Description

      a) Start with a Liferay 7 tomcat bundle, unpack it.
      b) Deploy the osgi configuration file for the OpenSSO connector, to osgi/configs. <----- CRITICAL
      ....Filename should be:
      ........com.liferay.portal.security.sso.opensso.configuration.OpenSSOConfiguration.config (copy is attached)
      d) Prepare a blank DB, ready to receive the Liferay schema.
      e) Configure portal-ext.properties to connect to the DB.
      f) Startup Liferay
      g) Wait until Liferay finishes running all SQL scripts to create the schema, then connect to the DB using an SQL admin utility, and check the contents of portletpreferences using the following SQL query:

      select preferences from portletpreferences where portletid = 'com.liferay.portal.security.sso.opensso'
      

      The actual result it creates <portlet-preferences>...a bucket load of config here...</portlet-preferences> of which it's unwanted.

      But if you deploy the OpenSSOConfiguration.config file to the osgi/configs after the DB has initialized, then you are able to see the expected result of preferences = <portlet-preferences /> from the table

        Attachments

        1. after.png
          after.png
          45 kB
        2. before.png
          before.png
          50 kB

          Activity

            People

            • Assignee:
              felix.zhang Felix Zhang
              Reporter:
              michael.han Michael Han
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 13 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP31
                7.0.5 CE GA6
                7.0.X
                7.1.X
                Master