Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4678:23de24f57566
issue2550749 - the xmlrpc interface is invoked on content type
and not url path. Sending any text/xml data to roundup results in
invoking the xml-rpc interface, but a REST or other interface could
also consume xml data and do something different. So require the use
of 'http(s)://.../xmlrpc' uri to trigger the xmlrpc interface.
| author | rouilj |
|---|---|
| date | Sun, 25 Nov 2012 18:24:28 -0500 |
| parents | d7ac6c7bc371 |
| children | 5033c2ad80a7 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Sun Nov 25 18:07:58 2012 -0500 +++ b/roundup/cgi/client.py Sun Nov 25 18:24:28 2012 -0500 @@ -361,7 +361,7 @@ """ Wrap the real main in a try/finally so we always close off the db. """ try: - if self.env.get('CONTENT_TYPE') == 'text/xml': + if self.env.get('CONTENT_TYPE') == 'text/xml' and self.path == 'xmlrpc': self.handle_xmlrpc() else: self.inner_main()
