Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5396

Fetching tags from new pages causes XmlRpcException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • None
    • 2.4
    • {Unused} XML-RPC
    • 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

      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)

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mawoki Martin W. Kirst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: