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

        1. Fixed-LPS-102832.png
          34 kB
          Sharry Shi
        2. script.groovy
          0.7 kB
          Norbert Kocsis

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP88
                  7.0.X
                  7.1.10 DXP FP15
                  7.1.X
                  7.2.10 DXP FP3
                  7.2.X
                  7.2.1 CE GA2
                  Master