-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, 7.2.X, 7.3.X, Master
-
Fix Version/s: 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
-
Component/s: Core Infrastructure
-
Branch Version/s:7.3.x, 7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Steps to Reproduce:
- Create a custom SitemapURLProvider that returns, as classname, JournalArticle class with service.ranking bigger than default. Can use to deploy sitemap.provider.test.jar
- Restart the server.
- 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.