[jitsi-dev] wrong content-type for resource list upload (was Re: [SR-Users] SIP Communicator renamed to Jitsi)


#1

Hello,

someone reported on Kamailio mailing list a potential issue with content type when uploading resource list documents.

I forwarded the message here so you can investigate.

Thanks,
Daniel

Jitsi

From: Iñaki Baz Castillo <ibc@aliax.net>

Presence configuration with XCAP:
   * http://asipto.com/u/sp

It's being a hard task for me to report a bug in Jitsi tracker or
subscribing to the maillist, so I report a bug just here (hopefully
authors read this maillist):

When Jitsi uploads the resource-list (XCAP PUT) it set a wrong Content-Type:

···

-------- Original Message --------
Subject: Re: [SR-Users] [Kamailio-Business] SIP Communicator renamed to Date: Sun, 27 Mar 2011 13:32:59 +0200
Reply-To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List <sr-users@lists.sip-router.org>
To: miconda@gmail.com
CC: kamailio <sr-users@lists.sip-router.org>, business@lists.kamailio.org

2011/3/27 Daniel-Constantin Mierla<miconda@gmail.com>:

-----------------------------------------
PUT /resource-lists/users/sip:alice@example.org/index HTTP/1.1'
Connection: close'
Content-Length: 231'
Content-Type: application/xcap-caps+xml'
Content-Encoding: UTF-8'
Host: example.org:800'
User-Agent: Apache-HttpClient/4.0.1 (java 1.5)'
Expect: 100-Continue'

<?xml version="1.0" encoding="UTF-8" standalone="no"?><resource-lists
xmlns="urn:ietf:params:xml:ns:resource-lists"><list
name="RootGroup"><entry
uri="sip:bob@example.org"/></list></resource-lists>
---------------------------------------

Why is it using "Content-Type: application/xcap-caps+xml"??? Such mime
type is just for discovering XCAP Server Capabilities!:
   http://tools.ietf.org/html/rfc4825#section-12

The mime type for a resource-lists document must be
application/resource-lists+xml:
   http://tools.ietf.org/html/rfc4826#section-3.4.2

Regards.

--
Iñaki Baz Castillo
<ibc@aliax.net>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users