Ticket #17 (closed Defect: Unreproducible)

Opened 13 months ago

Last modified 12 months ago

500 Server error when trying to GET a ressource-list document

Reported by: af.devlist Owned by: Mircea Amarascu
Priority: Minor Milestone:
Component: XCAP protocol Version:
Severity: Non-critical Keywords:
Cc:

Description

Each time I try to get a ressource-list on the server, I get the following error :

Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] Exception rendering: Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] Traceback (most recent call last): Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 229, in mainLoop Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] self.runUntilCurrent() Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 641, in runUntilCurrent Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] f(*a, **kw) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 239, in callback Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] self._startRunCallbacks(result) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 304, in _startRunCallbacks Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] self._runCallbacks() Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] --- <exception caught here> --- Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 317, in _runCallbacks Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] self.result = callback(self.result, *args, **kw) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/xcap/resource.py", line 51, in sendResponse Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] response = http.Response(response.code, stream=response.data) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] File "/usr/lib/python2.5/site-packages/twisted/web2/http.py", line 109, in init Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] self.stream = IByteStream(stream) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] exceptions.TypeError: ('Could not adapt', array('c', '<?xml version="1.0" encoding="UTF-8"?>\r\n<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">\r\n <list name="new-group">\r\n <display-name>New Group</display-name>\r\n <entry uri="sip:test2@domain.test">\r\n <display-name>test2</display-name>\r\n </entry>\r\n </list>\r\n</resource-lists>'), <InterfaceClass twisted.web2.stream.IByteStream>) Nov 5 16:47:54 rd-srv-devlnx openxcap[30632]: [-] error: The document is not UTF-8 encoded. Encoding is : None

Here is the version of the software I use on a UBUNTU server : * libxml2 : 2.6.27.dfsg-1ubuntu3 * libxml2-dev : 2.6.27.dfsg-1ubuntu3 * python : 2.5.1-0ubuntu3 * python-lxml : 1.1.2-1ubuntu2 * Twisted : 2.5 from SVN * python-application : 1.0.9 * python-gnutls : 1.1.4

Change History

in reply to: ↑ description   Changed 12 months ago by ruud

  • severity changed from Critical to Non-critical

For some reason internally a python "array" is used to store the XCAP document, which I think is not right. I think this should be a string.

It does sound like one of your dependencies is at fault, but looking at the list I cannot tell you which unfortunately.

  Changed 12 months ago by ruud

  • status changed from new to closed
  • resolution changed from To be investigated to Will not be fixed

Unreproducable.

  Changed 12 months ago by ruud

  • status changed from closed to reopened
  • resolution Will not be fixed deleted

  Changed 12 months ago by ruud

  • status changed from reopened to closed
  • resolution set to Unreproducable

I cannot figure out where the 'array' comes into play. Unless you can provide more details about it, I cannot solve your issue.

Note: See TracTickets for help on using tickets.