Details
-
Bug
-
Resolution: Fixed
-
Major
-
15.2-rc-1
-
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.