Hi all.
I get an exception in openXcap when I send a GET to retrieve the resources file.
I explain the process I followed:
----->Send GET to openXcap.
<----Receive 404, because there is not file.
-----> Send PUT to openXcap. The body contains a resource-list.xml document 'with no data':
Body;
<?xml version='1.0' encoding='UTF-8'?>
<resource-lists xmlns='urn:ietf:params:xml:ns:resource-lists' xmlns:cp='urn:ietf:params:xml:ns:copycontrol'>
<list></list>
</resource-lists>
<----Receive 200 OK. So openXcap likes my document.
-----> Send GET to openXcap.
<---- Receive 500 "An error occurred rendering the requested page. More information is available in the server log". So the same document that was accepted in the PUT throws an exception.
The server log says:
Oct 30 15:01:55 localhost openxcap[2791]: [-] Exception rendering:
Oct 30 15:01:55 localhost openxcap[2791]: [-] Traceback (most recent call last):
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py", line 228, in mainLoop
Oct 30 15:01:55 localhost openxcap[2791]: [-] self.runUntilCurrent()
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 533, in runUntilCurrent
Oct 30 15:01:55 localhost openxcap[2791]: [-] f(*a, **kw)
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 239, in callback
Oct 30 15:01:55 localhost openxcap[2791]: [-] self._startRunCallbacks(result)
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 304, in _startRunCallbacks
Oct 30 15:01:55 localhost openxcap[2791]: [-] self._runCallbacks()
Oct 30 15:01:55 localhost openxcap[2791]: [-] --- <exception caught here> ---
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 317, in _runCallbacks
Oct 30 15:01:55 localhost openxcap[2791]: [-] self.result = callback(self.result, *args, **kw)
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/xcap/resource.py", line 51, in sendResponse
Oct 30 15:01:55 localhost openxcap[2791]: [-] response = http.Response(response.code, stream=response.data)
Oct 30 15:01:55 localhost openxcap[2791]: [-] File "/usr/lib/python2.4/site-packages/twisted/web2/http.py", line 109, in __init__
Oct 30 15:01:55 localhost openxcap[2791]: [-] self.stream = IByteStream(stream)
Oct 30 15:01:55 localhost openxcap[2791]: [-] exceptions.TypeError: ('Could not adapt', array('c', "<?xml version='1.0' encoding='UTF-8'?><resource-lists xmlns='urn:ietf:params:xml:ns:resource-lists' xmlns:cp='urn:ietf:params:xml:ns:copycontrol'><list></list></resource-lists>"), <InterfaceClass twisted.web2.stream.IByteStream>)
Anyone know what is wrong?
Thanks and best regards.
Gregorio
_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users