Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16869

The user reference in the HTML is wrong when there's no user logged in

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When no user is logged in (aka guest user), the HTML is:

      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
              data-xwiki-reference="xwiki:Main.WebHome"
          data-xwiki-document="Main.WebHome"
          data-xwiki-wiki="xwiki"
          data-xwiki-space="Main"
          data-xwiki-page="WebHome"
          data-xwiki-isnew="false"
                  data-xwiki-version="1.1"
          data-xwiki-rest-url="/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome"
          data-xwiki-form-token="bPTZPxgpL8kN8sZ0KxAiBA"
          data-xwiki-user-reference="$escapetool.xml($value)"
          data-xwiki-locale=""
      >
      ...
      

      Notice the problem with the user reference:

          data-xwiki-user-reference="$escapetool.xml($value)"
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: