[cosmo-dev] Re: Lightning + Cosmo

Grant Baillie grant at osafoundation.org
Thu Dec 20 08:12:45 PST 2007


On 20 Dec, 2007, at 08:03, Travis Vachon wrote:

>>>
>>> Hi Jared,
>>>
>>> I got a trace from Wireshark (saved in pdml and attached. I have  
>>> edited the file to hide my password). The error is a 403 Forbidden  
>>> message that Cosmo sends back and the description of the problem  
>>> in the xml is:
>>>
>>> Calendar data of type text/calendar, charset=utf-8 not allowed;  
>>> only text/calendar
>>>
>>> Does this make sense? Is Lightning not specifying the correct  
>>> charset or should Cosmo accept it?
>>
>> Cosmo should accept that charset parameter IMO. Most clients omit  
>> it, so I'm guessing Cosmo doesn't deal with the case of parameters  
>> in the Content-Type header.
>>
>> --Grant
>>
>
> AFAIK the servlet framework does handle charset parameters, but I've  
> never seen a comma used to delimit header parameters, generally ; is  
> used:
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
>
>
> Further investigation reveals this is a bug in Lightning (according  
> the the http 1.1 spec):
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7

Oh, good catch! I didn't notice the "," vs ";", of course.

--Grant




More information about the cosmo-dev mailing list