Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.10.2
Description
Customer experiences a problem when he tries to update page which contains pagetree using XMLRPC. This problem does exist in the version 1.10.2 and 1.11 on confluence 2.10.2. But, it does not exist in Confluence 3.0 (which is the latest version).
Here is piece of code to reproduce the problem:
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL(new URL("http://localhost:8300/rpc/xmlrpc")); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); Object[] params = new Object[]{"admin", "arie"}; String token = (String) client.execute("confluence1.login", params); System.out.println("token: "+token); HashMap temp = new HashMap(); temp.put("space", "tete"); temp.put("id", "2949122"); temp.put("title", "semprul"); temp.put("version", "1"); temp.put("content", "{pagetree} tambah ganteng"); params = new Object[]{token, temp}; client.execute("confluence1.storePage", params);