Details
-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
3.5.1
-
Unknown
-
N/A
-
N/A
-
Description
I noticed this on a farm where copyDocument was randomly skipping class documents when creating a new wiki from a template wiki.
The reason copyDocument was skipping is because sourceDoc.isNew() is returning 'true', even if the document is present in the database.
When creating multiple wikis in a row:
- the first wiki is always correctly created: it contains all the documents from the template
- the following wikis are missing a couple of classes, but never the same classes
Attachments
Issue Links
- duplicates
-
XWIKI-7628 Duplicating document between wikis may cause objects to be broken
- Closed
- relates to
-
XWIKI-8872 MessageTool can read from the wrong context in scheduler jobs or threads
- Closed