-
Bug
-
Resolution: Unresolved
-
Major
-
2.2.0, 2.3.0
-
None
Put a root on 'fr' sitemap AND 'en' sitemap with same parameters (content type, classifying metadata and depth).
It works well when navigating in the site
BUT the method UserDirectoryPageHandler#getUserPagesContent(Page, String) is broken. It is based on a cache which is not sitemap/language aware
As a result its callers (for instance UserPageFactory#getAmetysObjectById always return the same page for different ids
i.e. ametysResolver.resolveById("uduser://b?rootId=root.en.id&contentId=my.user.content.1.en.id") and ametysResolver.resolveById("uduser://b?rootId=root.fr.id&contentId=my.user.content.1.fr.id") will return the same page object (either the 'fr' or 'en' one, depending on which came first to fill the cache).
So the method is wrong.