Package: python-moinmoin
Version: 1.9.2-3
Severity: normal
Tags: patch

XmlRPC/WikiRpc getPage and putPage are broken in Moin 1.9.2

Example, using get.py:
> import xmlrpclib
> wikiurl = "http://localhost:8080/";
> homewiki = xmlrpclib.ServerProxy(wikiurl + "?action=xmlrpc2",
> allow_none=True)
> pagename = 'FrontPage'
> raw_text = homewiki.getPage(pagename)
> print raw_text

Fails with:

Traceback (most recent call last):
  File "get.py", line 8, in <module>
    raw_text = homewiki.getPage(pagename)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
    return u.close()
  File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: '<type \'exceptions.AttributeError\'>: 
\'XMLRPCContext\' object has no attribute \'in_data\'\n  File 
"/usr/lib/pymodules/python2.5/MoinMoin/xmlrpc/__init__.py", line 137, in 
process\n    data = request.in_data\n\n  File 
"/usr/lib/pymodules/python2.5/MoinMoin/web/contexts.py", line 224, in 
__getattr__\n    return super(HTTPContext, self).__getattribute__(name)\n'>


This bug was already forwarded upstream, and they already provided a patch:
 http://hg.moinmo.in/moin/1.9/rev/87dae5077cae

Regards,

Franklin

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (101, 'unstable'), (10, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-4-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-moinmoin depends on:
ii  python                      2.5.4-9      An interactive high-level object-o
ii  python-parsedatetime        0.8.7-1      Python module to parse human-reada
ii  python-pygments             1.3.1+dfsg-1 syntax highlighting package writte
ii  python-support              1.0.8        automated rebuilding support for P
ii  python-werkzeug             0.6.2-1      collection of utilities for WSGI a

Versions of packages python-moinmoin recommends:
ii  apache2-mpm-prefork [httpd-cg 2.2.15-3   Apache HTTP Server - traditional n
ii  exim4-daemon-light [mail-tran 4.71-4     lightweight Exim MTA (v4) daemon
ii  fckeditor                     1:2.6.6-1  rich text format javascript web ed
ii  libapache2-mod-wsgi           3.2-1      Python WSGI adapter module for Apa
ii  python-xapian                 1.0.19-1   Xapian search engine interface for
ii  python-xappy                  0.5-2      easy-to-use interface to the Xapia

Versions of packages python-moinmoin suggests:
pn  antiword                  <none>         (no description available)
pn  catdoc                    <none>         (no description available)
ii  docbook-dsssl             1.79-6         modular DocBook DSSSL stylesheets,
ii  miscfiles [wordlist]      1.4.2.dfsg.1-9 Dictionaries and other interesting
ii  poppler-utils [xpdf-utils 0.12.4-1       PDF utilitites (based on libpopple
ii  python-4suite-xml         1.0.2-7.2+b1   An open-source platform for XML an
ii  python-docutils           0.6-3          utilities for the documentation of
ii  python-flup               1.0.2-1        Implements Python Web Server Gatew
pn  python-gdchart            <none>         (no description available)
pn  python-ldap               <none>         (no description available)
ii  python-mysqldb            1.2.2-10+b1    A Python interface to MySQL
ii  python-openid             2.2.4-1        OpenID support for servers and con
pn  python-pyxmpp             <none>         (no description available)
pn  python-tz                 <none>         (no description available)
pn  python-xml                <none>         (no description available)
pn  smbfs                     <none>         (no description available)
ii  wamerican [wordlist]      6-3            American English dictionary words 
ii  wfrench [wordlist]        1.2.3-8        French dictionary words for /usr/s

-- Configuration Files:
/etc/moin/apache.conf changed [not included]
/etc/moin/farmconfig.py changed [not included]
/etc/moin/mywiki.py changed [not included]
/etc/moin/wikilist changed [not included]

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/moin/server/moin.wsgi (from python-moinmoin 
package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to