[OpenSER-Users] OpenXCAP problem

Mircea Amarascu mircea at ag-projects.com
Sun Jan 13 14:10:05 CET 2008


Hi Franz,

It seems there is a problem with the way Bria is constructing the 
request URI:

GET /xcap-root/resource-lists/users//resource-list.xml


Why does the request URI contain "//" instead of "/" before 
resource-list.xml ? That was the place for the username (e.g. "alice"), 
so now the username is an empty string ("").

Also there might be a problem with the way you've configured OpenXCAP: 
it looks like the root URI in [Server] config section should contain 
"http://hostname/xcap-root" instead of "http://hostname" since you've 
provisioned Bria with the "xcap-root" segment of the URI.


Franz Edler wrote:
> Hi OpenXCAP experts,
>
> I am trying to setup a demo-configuration for XCAP with Eyebeam- and
> Bria-client. OpenXCAP and OpenSER are running. When I start-up the
> Bria-client (data storage via XCAP enabled) I get the following errors from
> OpenXCAP - log (e.g. for resource-list):
>
> Jan  2 13:15:38 sip openxcap[10367]: [HTTPChannel,2,192.168.0.2] error:
> Invalid Document Selector xcap-root/resource-lists/users//resource-list.xml
> (the Document Selector context must be 'users' or 'global':
> 'resource-lists')
> Jan  2 13:15:38 sip openxcap[10367]: [-] error: Invalid Document Selector
> xcap-root/resource-lists/users//resource-list.xml (the Document Selector
> context must be 'users' or 'global': 'resource-lists')
>
> The HTTP dialog between the client and the XCAP server is the following:
>
>   GET /xcap-root/resource-lists/users//resource-list.xml HTTP/1.1
>
>   Host: xcap.net1.test:8000
>
>   Keep-Alive:
>
>   Connection: TE, Keep-Alive
>
>   TE: trailers
>
>  
>
>   HTTP/1.1 404 Not Found
>
>   Date: Wed, 02 Jan 2008 12:15:38 GMT
>
>   Content-Length: 75
>
>   Server: OpenXCAP/0.9.7
>
>  
>
>   the Document Selector context must be 'users' or 'global':
> 'resource-lists'                     
>  
>
>  
>
>   PUT /xcap-root/resource-lists/users//resource-list.xml HTTP/1.1
>
>   Host: xcap.net1.test:8000
>
>   Connection: TE
>
>   TE: trailers
>
>   Content-Type: application/resource-lists+xml
>
>   Content-Length: 323
>
>  
>
>   <?xml version="1.0" encoding="UTF-8"?>
>
>   <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
> xmlns:cp="counterpath:properties">
>   <list name="Contact List">
>
>   <cp:prop name="category" value="Friends" />
>
>   <cp:prop name="category#2" value="Home" />
>
>   <cp:prop name="category#3" value="Work" />
>
>   </list></resource-lists>
>
>  
>
>   HTTP/1.1 404 Not Found
>
>   Date: Wed, 02 Jan 2008 12:15:38 GMT
>
>   Content-Length: 75
>
>   Server: OpenXCAP/0.9.7
>
>  
>
>   the Document Selector context must be 'users' or 'global':
> 'resource-lists' 
>   
> Any hint highly appreciated!
>
> Franz
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>   





More information about the sr-users mailing list