Details
-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
-
2.4
-
WinXP SP3 GER 32bit, Java 1.6 u21, Eclipse 3.6
-
xmlrpc, api, tags
-
Unknown
-
N/A
-
N/A
-
Description
Fetching the object XWiki.TagClass from a newly created page via XMLRPC-API,
will cause a org.apache.xmlrpc.XmlRpcException.
Steps to reproduce
- create a new page, example Space: Sandbox, Page: TestTags
- Use the XMLRPC example program "Page: List Tags" (http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HPage:ListTags)
- Change the code to point to pageId = "Sandbox.TestTags"
- Run it --> Exception see below
Remarks/Workaround:
- Once, you've added some tags manually to the page the code sample works perfectly
- Even if you delete on a random page all existing tags, the sample code works perfectly
Expected Behavior:
- When fetching tags from a new page, I just want to have an empty list of tags.
- The XmlRpcException is to much generous to react properly on this fact.
- There should be a consisted behavior, when retrieving tags from a new page or an older page, where all the tags where deleted.
This Exception happens:
----------------------------
org.apache.xmlrpc.XmlRpcException: Failed to invoke method getObject in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: [Unable to find object XWiki.TagClass[0] on page 'Sandbox.TestTags']
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at org.xwiki.xmlrpc.XWikiXmlRpcClient.invokeRpc(XWikiXmlRpcClient.java:1023)
at org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:716)
at org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:782)
at ListTags.main(ListTags.java:28)