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

Comments are not handled correctly in .config files

    Details

      Description

      Steps to reproduce:

      In a master or 7.2 fp5/SP2 bundle:

      1. Place the attached .config file (which includes a comment) in osgi/configs folder.
      2. Start the server.

      Expected result: server starts without errors and config is applied.

      Current result: the following error is thrown (see attached log for the full exception):

      2020-05-20 08:56:39.800 ERROR [Portal Dependency Manager Component Executor--1]

      2020-05-20 08:56:25.300 ERROR [Portal Dependency Manager Component Executor--1][LinkbackMessageListener:93] bundle com.liferay.blogs.web:4.0.51 (121)[com.liferay.blogs.web.internal.messaging.LinkbackMessageListener(3139)] : The activate method has thrown an exception java.lang.RuntimeException: Unable to create snapshot class for interface com.liferay.blogs.configuration.BlogsConfiguration
      {...}
      Caused by: java.lang.IllegalArgumentException: No conversion to class java.lang.Integer from class java.lang.String value "5"
      

      Note: Comments were handled correctly until fixpack-4 (incuded).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sharry.shi Sharry Shi
              Reporter:
              cristina.rodriguez Cristina Rodriguez
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP6
                  7.2.X