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

PropsUtil.get() returns property value with leading whitespaces

    Details

      Description

      Steps to reproduce:
      0. Install dxp-13 fix pack.
      1. Add, for example, the following line to your portal-ext:

      partnerstamm-api-user = his_user

      2. Start the bundle and run the attached groovy script (it contains 3 ways I tried of retrieving a property's value).

      Result:

      com.liferay.portal.util.PropsUtil: his_user
      com.liferay.portal.kernel.util.PropsUtil: his_user
      ConfigurationFactoryUtil: his_user

      Expected:

      com.liferay.portal.util.PropsUtil:his_user
      com.liferay.portal.kernel.util.PropsUtil:his_user
      ConfigurationFactoryUtil:his_user

      7.1.x: reproduced
      Master: the result is

      com.liferay.portal.util.PropsUtil:null
      com.liferay.portal.kernel.util.PropsUtil:null
      ConfigurationFactoryUtil:null

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                norbert.kocsis Norbert Kocsis
                Participants of an Issue:
                Recent user:
                Enterprise Release HU
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  Master