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

xmlrpc call to getPageHistory does not work from Python

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: {Unused} XML-RPC
    • Labels:
    • keywords:
      xmlrpc getPageHistory python
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      XWIKI ENTERPRISE 2.2.2.27483
      Javadoc of trunks/core/xwiki-xmlrpc/xwiki-xmlrpc-client/src/main/java/org/xwiki/xmlrpc shows existence of getPageHistory. But can not use it from Python.

      Python code:
      page = proxy.confluence1.getPage(token, 'Linuxbeheer.ProjectNagios')
      print page.get('id')
      history=proxy.confluence1.getPageHistory(token,page.get('id'))
      print type(history),history

      Error text:

      Traceback (most recent call last):
      File "list-attachments.py", line 67, in <module>
      history=proxy.confluence1.getPageHistory(token,page.get('id')) #'Linuxbeheer.ProjectNagios')
      File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in _call_
      return self._send(self._name, args)
      File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
      verbose=self.__verbose
      File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
      return self._parse_response(h.getfile(), sock)
      File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
      return u.close()
      File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
      raise Fault(**self._stack[0])
      xmlrpclib.Fault: <Fault 0: 'Failed to invoke method getPageHistory in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: null'>

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              kwoot Jeroen Baten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: