OK. I see where the duplicate is now. I will test later today.



On , Saúl Ibarra Corretgé <[email protected]> wrote:
Hi Duane,



[snip]



>

> I created it by doing the following

>

> PUT /xcap-root/rls-services/users/sip:[email protected]/index HTTP/1.1.

> Accept-Encoding: identity.

> Content-Length: 798.

> Host: xcap.X.com.

> User-Agent: python-xcaplib/1.0.16.

> Connection: close.

> Content-Type: application/x-www-form-urlencoded.

> Authorization: Digest username="9012732009", realm="irock.com", nonce="332840634855165799770139975774574805066135619005395955328", uri="/xcap-root/rls-services/users/sip:[email protected]/index", response="f76c6a6375156936cb0c5d6137a325ad", opaque="0a430b4a4d580e7d473c2697c9d61477-MzMyODQwNjM0ODU1MTY1Nzk5NzcwMTM5OTc1Nzc0NTc0ODA1MDY2MTM1NjE5MDA1Mzk1OTU1MzI4LDE3My4yMDMuODEuMTExLDEzMjc4MTQzOTE=", algorithm="MD5", qop=auth, nc=00000001, cnonce="dfd8addb86008b0e".

> .

> ##

> T 2012/01/28 23:19:51.385478 173.XXX:39849 -> 173.XXX:80 [AP]

>

>
> xmlns:rl="urn:ietf:params:xml:ns:resource-lists"

> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

> sip:[email protected]">

> http://xcap.X.com/xcap-root/resource-lists/users/sip:[email protected]/index



^^^ here, in the resource-list element, you need to insert the xpath for a *single* list in the resource-lists document. You are adding a link to the whole document for a given user.



>

> presence

>

>

> sip:[email protected]">

>

> sip:[email protected]"/>

> sip:[email protected]"/>

>

>

> presence

>

>

>

> ####

> T 2012/01/28 23:19:52.641120 173.XXX:80 -> 173.XXX:39849 [AP]

> HTTP/1.1 201 Created.

> Date: Sun, 29 Jan 2012 05:19:52 GMT.

> Content-Length: 0.

> ETag: "0a66a8b47732adca8badebeece871fe4".

> Content-Type: application/rls-services+xml.

> Server: OpenXCAP/2.0.1.

> Connection: close.

>

>

>

>

> I read over (RFC4826, sec 4.4.5) and it says

> "The URI in the "uri" attribute of the element MUST be

> unique amongst all other URIs in "uri" elements in any

> element in any document on a particular server"

>

> If I am reading this correctly it is telling me that "sip:[email protected]">" needs to be unique. I am pretty positive this is a unique URI and it is not created



Well, just read the XML you pasted above, you have the same URI twice:



> sip:[email protected]">

^^ service URI 1

> http://xcap.X.com/xcap-root/resource-lists/users/sip:[email protected]/index



>

> presence

>

>

> sip:[email protected]">

^^ service URI 2

>





The are the same.



> anywhere else. Also the RFC says

> "If a server is asked to set the URI to something that already

> exists, the server MUST reject the request with a 409,"

>

> I am not seeing a 409 error. So if I am understanding RFC4826 then I believe I have done everything right.

>



Your documents are bogus. That's about it. The XCAP server may have a bug as well, it should have gave that 409 error when pushing the document, though.





Regards,



--

Saúl Ibarra Corretgé

AG Projects









_______________________________________________

Users mailing list

[email protected]

http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to