Uploaded image for project: 'User Directory'
  1. User Directory
  2. UD-179

UserDirectoryPageHandler#getUserPagesContent(Page, String) is broken if multiple roots set in different sitemaps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.15.0
    • 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.

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: