Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.1, 3.5.1, 4.1.4, 4.2, 4.3, 4.4.1, 4.5
-
Fix Version/s: 4.5.2
-
Component/s: Localization
-
Labels:None
-
Difficulty:Unknown
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Similar issues:
XWIKI-7189URLs created by mailsender plugin called from a scheduler script can have a wrong context path XWIKI-6460 External URLs generated from scheduler jobs can be wrong XWIKI-6461XWiki context mapped in scheduler jobs is not the API wrapped one XWIKI-3846Execution context should be initialized in Scheduler threads XWIKI-9062 Scheduler space is incorrectly excluded from the Activity Stream XWIKI-8361IRC Bot is not restarted automatically by the scheduler job XWIKI-4405Remote Observation Manager can be in a state when the receiver thread is initialized before having the right context initialized XWIKI-8926 WatchList should use the same Velocity Context as the one used by other Scheduler jobs XWIKI-5154Deleted execution context issue when forcing feed update thread update from a non-daemonized context XWIKI-8367The user sending Watchlist page modified events when jobs are triggered is the wrong one
Description
XWikiMessageTool has a context stored in it's data structure and uses that context when reading data from the wiki.
In scheduler jobs or background threads (watchlist, extension manager, lucene, or user scheduler jobs) the context is cloned from the initial context that is passed to the initializations of the threads. If this context is from a child wiki (in multi wiki) then the message tool might read the preferences with a context from the wrong wiki while the ExecutionContext might be from another wiki. This can lead to reading the preferences from the wrong wiki or even worse lead to preferences read without objects because of a comparaison of references done in the loadXWikiDoc code. The preferences object will then be wrong in memeory and might be subsequently saved back to the wiki without the preferences object.
Issue Links
- is duplicated by
-
XWIKI-8871
Livetable is missing some translation for page navigation
-
- is related to
-
XWIKI-8046
In multiwiki mode, class documents are randomly overwritten by empty docs in the cache
-
-
XWIKI-8901
Use the new localization module for translating macro descriptors
-
-
CST-650 Loading...
- relates to
-
XWIKI-8880
Refactor workspaces to use new LocalizationManager instead of its own customized XWikiMessageTool
-
This issue might be related to this other issue which also has some discussions about preferences documents being lost.