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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: 2.4.0
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: