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

Hook portal.properties is not read when -Dcompany-id-properties=true

    Details

      Description

      It is not possible to access properties defined by a hook (portal.properties file) and a company (portal-

      {companyWebId}

      .properties) at the same time.

      Steps to reproduce
      1.- Be sure property -Dcompany-id-properties=false or not defined, and then, start Liferay.
      2.- Deploy a hook which contains a portal.properties file where is defined, i.e., a property called test.hook.property=hookProperty.
      3.- Go to Control Panel --> Server Administration --> Properties --> Portal Properties and find 'test.hook.property'. That property and its value are displayed.
      4.- Change configuration following below steps:
      4.0.- Stop Liferay.
      4.1.- Set up -Dcompany-id-properties=true.
      4.2.- Add a file called portal-liferay.com.properties to your LIFERAY_HOME, which includes, i.e., a property called test.company.property=companyProperty.
      4.3.- Start Liferay.
      5.- Go to Control Panel --> Server Administration --> Properties --> Portal Properties and find 'test.company.property'. That property is displayed. But if you find 'test.hook.property' is not displayed.

      Expected result
      You can reach both properties at the same time. Properties belonging to a company and a hook.

      Actual result
      If -Dcompany-id-properties=true, it is not possible to get properties from the portal.properties file definded in the hook.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 19 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2