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

Cannot override FriendlyURLNormalizerImpl by creating a service with a higher ranking

    Details

      Description

      When trying to provide a new implementation for FriendlyURLNormalizer by adding a new class with a higher service ranking, the new class is ignored.

      Steps to reproduce.

      1. Create a module with a new implementation of FriendlyURLNormalizer with a higher service ranking
      2. Start liferay and deploy the module created in #1
      3. Log on to the gogo shell and check for which implementation of FriendlyURLNormalizer is being used by running the services command and checking the output

      Expected Result:

      The higher service ranked implementation is used

      Actual Result:

      The original implementation is always used, e.g.:

      {com.liferay.portal.kernel.util.FriendlyURLNormalizer, com.liferay.portal.util.FriendlyURLNormalizerImpl}={service.id=2628, service.bundleid=0, service.scope=singleton, original.bean=true, service.ranking=100, service.vendor=Liferay, Inc., bean.id=com.liferay.portal.kernel.util.FriendlyURLNormalizer}
        "Registered by bundle:" org.eclipse.osgi_3.13.0.LIFERAY-PATCHED-8 [0]
      
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            allen.ziegenfus Allen Ziegenfus
            Participants of an Issue:
            Recent user:
            Peter Petrekanics
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              41 weeks ago

                Packages

                Version Package