[Freeassociation-devel] [regression] libical 0.48 escapes X properties, but doesn't unescape them

Allen Winter winter at kde.org
Fri Feb 3 15:38:12 PST 2012


On Monday 30 January 2012 1:18:11 PM Milan Crha wrote:
> 	Hi,
> I found a regression (actually, not me, but reporter of [1]'s downstream
> bug found an issue which led to this being found) in libical 0.48. It
> escapes strings on set of X properties, but doesn't unescape them on get.
> 
looks like this behavior was introduced with revision 1063

I suppose the right solution is to unquote on the get, like you said.



> See the attached test2.c, where I try to set a value which contains
> quotes to an X property, and when reading it I get the quotes escaped.
> The result of the test program looks like this:
> > set 'string with "quotes" used', got 'string with \"quotes\" used',
> > same:no!!!
> 
> This breaks CalDAV, which stores ETag values as they are received by the
> server, and servers I tested this with (which is Google and DAViCal)
> return ETags quoted, and expect them the same.
> 
> I've a workaround in evolution's CalDAV for now, but I do not know what
> else this new behavior can break, thus it'll be good to have this fixed,
> because it's expected that one gets what one sets.
> 
> Note the standard properties like SUMMARY don't suffer of this issue.
> 
> 	Thanks and bye,
> 	Milan
> 
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=669003
> 




More information about the libical-devel mailing list