On Thu, May 24, 2018 at 9:52 PM, ktc <ktc-wiki(a)amazon.com> wrote:
Hi Denis,
Thank you for your reply! We found out the reason is a document called
XWiki.XWikiServerXwiki whose title is empty. During the XWiki initialization
in 8.4.4 version(the version we use),
setDocumentFields
<https://github.com/xwiki/xwiki-platform/blob/stable-9.1.x/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/AbstractMandatoryDocumentInitializer.java#L183-L186>
The right link is
https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-8.4.4/xwiki-pla….
The version you pointed out does not have the bug as you can see from
the first condition in the if (was fixed in 9.0RC1 it seems) ;)
will mark the document as needsUpdate if the title is
blank(It only has
StringUtils.isBlank(document.getTitle()) in if statement for 8.4.4 version).
So it will then remove the security cache and cause the issue.
For the fix, we plan to add a title for XWiki.XWikiServerXwiki page, which
solved the issue in beta testing. Right now we didn't see any problem except
it will remove the security caches once more. Do you think it's safe doing
that? Thanks!
--
Sent from:
http://xwiki.475771.n2.nabble.com/XWiki-Dev-f475773.html
--
Thomas Mortagne