Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP Server using xcapclient and contained examples. <br><br>pres-rules PUT looks good:<br><br>[root@y examples]# xcapclient -i pres-rules.xml put<br>put <a href="http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index">http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index</a><br>
200 OK<br>etag: "110ff8cd75ce541886107061f70c36ff"<br>content-type: application/auth-policy+xml<br><br>pres-rules GET returns the following error:<br><br>[root@y examples]# xcapclient --app pres-rules get<br>get <a href="http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index">http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index</a><br>
500 Internal Server Error<br>content-type: text/plain<br>content-length: 96<br>An error occurred while processing the request. More information is available in the server log.<br><br>Log trace:<br><br>May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 'GET /xcap-root/pres-rules/users/<a href="http://sip:8888888888@x.y.com/index">sip:8888888888@x.y.com/index</a> HTTP/1.1' 500 0 96 'python-xcaplib/1.0.9' -<br>
May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers:<br>May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type: text/plain<br>May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent call last):<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in mainLoop<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 self.runUntilCurrent()<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in runUntilCurrent<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 f(*a, **kw)<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 self._startRunCallbacks(result)<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 self._runCallbacks()<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011--- <exception caught here> ---<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 self.result = callback(self.result, *args, **kw)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/xcap/resource.py", line 47, in sendResponse<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 response = http.Response(response.code, stream=response.data)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/web2/http.py", line 109, in __init__<br>
May 20 07:07:55 localhost openxcap[8994]: error: #011 self.stream = IByteStream(stream)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011exceptions.TypeError: ('Could not adapt', array('c', '<?xml version="1.0" encoding="UTF-8"?>\r\n<ruleset xmlns="urn:ietf:params:xml:ns:common-policy" xmlns:pr="urn:ietf:params:xml:ns:pres-rules" xmlns:cp="<a href="http://www.counterpath.com/privacy-lists">www.counterpath.com/privacy-lists</a>">\r\n<rule id="pres_whitelist">\r\n<conditions>\r\n<identity>\r\n<one id="<a href="mailto:sip%3Abob@example.com">sip:bob@example.com</a>"/>\r\n<one id="<a href="mailto:sip%3Aalice@example.com">sip:alice@example.com</a>"/>\r\n<many domain="<a href="http://ag-projects.com">ag-projects.com</a>">\r\n</many>\r\n</identity>\r\n</conditions>\r\n<actions>\r\n<pr:sub-handling>allow</pr:sub-handling>\r\n</actions>\r\n<transformations>\r\n<pr:provide-services>\r\n<pr:all-services/>\r\n</pr:provide-services>\r\n<pr:provide-persons>\r\n<pr:all-persons/>\r\n</pr:provide-persons>\r\n<pr:provide-devices>\r\n<pr:all-devices/>\r\n</pr:provide-devices>\r\n<pr:provide-all-attributes/>\r\n</transformations>\r\n</rule>\r\n<rule id="pres_blacklist">\r\n<conditions>\r\n<identity>\r\n<one id="<a href="mailto:sip%3A40316600024@abc.com">sip:40316600024@abc.com</a>"/>\r\n</identity>\r\n</conditions>\r\n<actions>\r\n<pr:sub-handling>block</pr:sub-handling>\r\n</actions>\r\n<transformations/>\r\n</rule>\r\n</ruleset>'), <InterfaceClass twisted.web2.stream.IByteStream>)<br>
<br>Thanks for any clues,<br>Rob<br><br><br><br>