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

What's new links to the first document visited after start which can be inaccessible

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Access <xwiki-host>/xwiki/bin/admin/XWiki/XWikiPreferences to initialize XWiki (the important part is that this is the first document that is loaded).
      2. Log out (in case you were logged in)
      3. Click on "What's new" in the drawer

      Expected result:

      The news are displayed.

      Actual result:

      A login form is displayed as the URL of What's new points to <xwiki-host>/xwiki/bin/view/XWiki/XWikiPreferences?xpage=whatsnew.

      This is because the UIX for creating the link uses the current document for displaying the news but is cached. Therefore, the first link that is created after the wiki start is cached. If the current user cannot access the document for which the URL was cached, the user cannot access What's new anymore.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: