[sip-comm-dev] Re: XCAP problem (application/xcap-el+xml)


#1

Hello Saúl,

I have some thoughts about application/vnd.oma.pres-content+xml.
I think that it should be the opportunity to GET/PUT pres-content. For now
only PUT operation is available, and during GET operation you can only get
the image content but not its meta-data.
I suggest the following:
If during GET operation I specify in the HTTP header
application/vnd.oma.pres-content+xml you can return the xml, if not - return
the image content. This compromise will allow you to support for almost 100%
the specification and for us to use it correctly.
What do you think about it?

Thanks, Grigorii

···

2010/6/30 Saúl Ibarra Corretgé <saul@ag-projects.com>

Hi,

On 30/06/10 11:21, Grigorii Balutsel wrote:

Hello Saúl,

Do you need some additional help to resolve these issue?

I've had no time to check this yet, sorry :-S I'll come back to you on that
when I find the time to fix it.

The second issue that I've found is about pres-content

(application/vnd.oma.pres-content+xml, http://openxcap.org/wiki/Icon).
According to

http://www.openmobilealliance.org/technical/release_program/docs/PresenceSIMPLE/V2_0-20081223-C/OMA-TS-Presence_SIMPLE_Content_XDM-V1_0-20081223-C.pdf
(in the end of the document you can find examples)
GET method should return Content-Type:
application/vnd.oma.pres-content+xml, your server returns it, but the
content of it is not xml - it is image (PNG, GIF and so on).
It is an issue or I've missed something?

Yeah... actually we did that in purpose: the idea is to store the icon
through XCAP with a randomly generated name, so that it's sort of 'private'.
Then this can be advertised with CIPID (RFC 4482) and the user which sees
this URL in the icon field doesn't really know it was stored in XCAP so it
would expect to fetch the icon with a regular GET request.

We know it doesn't comply with the standard 100%, but it feels better this
way and yet nobody bothered implementing it that I'm aware (I'm actually
glad you do). Our test scripts (sipsimple project) work this way, maybe you
can test with them.

If this causes trouble in the future we shall change it. :slight_smile:

Kind regards,

--
Saúl Ibarra Corretgé
AG Projects


#2

Hi,

···

On 08/07/10 12:40, Grigorii Balutsel wrote:

Hello Sa�l,

I have some thoughts about application/vnd.oma.pres-content+xml.
I think that it should be the opportunity to GET/PUT pres-content. For
now only PUT operation is available, and during GET operation you can
only get the image content but not its meta-data.
I suggest the following:
If during GET operation I specify in the HTTP header
application/vnd.oma.pres-content+xml you can return the xml, if not -
return the image content. This compromise will allow you to support for
almost 100% the specification and for us to use it correctly.
What do you think about it?

You're right :slight_smile: Actually this was the planned behavior at some point, but somehow I forgot about it when implementing it. I'll address this in the next OpenXCAP release. No ETA for the moment.

Thanks for your valuable input!

--
Sa�l Ibarra Corretg�
AG Projects

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net