Details
-
Bug
-
Resolution: Fixed
-
Major
-
0.9.1252, 1.0 B1, 1.0 B2, 1.1 M2
-
None
-
Seen on Windows XP
-
xmlrpc
-
Description
ConfluenceRpcHandler uses BaseRpcHandler.getXWikiContext() to obtain a context before retrieving or storing a page.
But BaseRpcHandler.getXWikiContext() initially obtains the context with Utils.prepareContext(), then calls:
context.setDatabase("xwikitest");
(see BaseRpcHandler.java line 60).
Consequently, XMLRPC calls affect the xwikitest database, or fail if it does not exist.