Uploaded image for project: '{RETIRED} XWiki Panels Application'
  1. {RETIRED} XWiki Panels Application
  2. XAPANELS-74

"$rdoc.displayTitle" in panel list is shown if user doesn't have access to the document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.16
    • Fix Version/s: 1.17
    • Component/s: Panels
    • Labels:
      None
    • keywords:
      Panels
    • Similar issues:

      Description

      It was found for /xwiki/bin/inline/Panels/Recently+Modified panel, but could affect also Recently Created and RecentlyVisited panels.
      if user doesn't have access to the document, then $rdoc.displayTitle remains uninitialized and it is shown in panel list.
      Simple fix is setting initial value for it:
      ...
      <span class="pitemseparator"> | </span>
      #end
      #set($title="")
      #set($title=$rdoc.displayTitle)
      <span class="panelitem"><a href="$rdoc.getURL("view")">$title</a></span>
      ...

        Attachments

          Activity

            People

            Assignee:
            ancutagheorghe Ancuta Gheorghe
            Reporter:
            valdisvi Valdis Vitolins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: