[CalendarServer-dev] Handling of URL encoding in server responses.

Peter Mogensen apm at one.com
Wed Aug 10 00:41:29 PDT 2016


I'm looking at a strange little scenario with a client trying to sync 
with the CalendarServer.

It goes like this, in summary:

C: REPORT:calendar-query /calendars/users/me at domain/calendar/
<?xml version="1.0"?>
                         <D:prop xmlns:D="DAV:">
                             <C:comp-filter name="VCALENDAR">
                                 <C:comp-filter name="VEVENT">
start="20160611T000000Z" end="20170207T000000Z"/>

S: 207 - Here's a bunch of hrefs of the form:

C: REPORT:calendar-multiget /calendars/users/me at domain/calendar/

Now ... it's clear from https://tools.ietf.org/html/rfc4918#section-8.3 
that the last request is illegal.
Or rather... if one parses the URL comparison rules it seems to say that 
the Request-URI and the <href> should be octet-by-octet compared, so "@" 
!= "%40"  here.

However... (and this is the question) ... I'm a little in doubt about 
how to interpret RFC4918, section 8.3 wrt. which rules the server should 
obey wrt. the Request-URI when formulating the response.

Is the server allowed to respond with <href>/%40</href> when the 
Request-URI was /@ ?

Peter Mogensen

More information about the calendarserver-dev mailing list