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

SitemapURLProviderRegistryUtil.java doesn't have knowledge about service.ranking

    Details

      Description

      Steps to Reproduce:

      1. Create a custom SitemapURLProvider that returns, as classname, JournalArticle class with service.ranking bigger than default. Can use to deploy sitemap.provider.test.jar
      2. Restart the server.
      3. Execute the following script:
      import com.liferay.layout.admin.kernel.util.SitemapURLProviderRegistryUtil;
      import com.liferay.journal.model.JournalArticle;
      
      out.println(SitemapURLProviderRegistryUtil.getSitemapURLProvider(JournalArticle.class.getName()));
      

      Expected Result:

      The custom class should be returned.

       

      Actual Result:

      Returned class depends on the order in which components were activated, being the last one the one returned.

       

       

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            georgel.pop Georgel Vasile Pop
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP97
                7.0.X
                7.1.10 DXP FP21
                7.1.X
                7.2.10 DXP FP10
                7.2.X
                7.3.X
                Master