Closed Bug 849797 Opened 7 years ago Closed 7 years ago

resPathComponents[endBasePos] is undefined

Categories

(Calendar :: Provider: CalDAV, defect)

Lightning 2.2
x86_64
Windows 7
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: TheOne, Assigned: Fallen)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

When trying to synchronize an ownCloud calender (with the help of the SoGo Inverse connector http://www.sogo.nu/english/downloads/frontends.html ) I get the following errors in the error console:

Error: resPathComponents[endBasePos] is undefined
Source file: file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calDavCalendar.js
Line: 1043
 ----------
Error: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsISAXXMLReader.onDataAvailable]
Source file: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavRequestHandlers.js
Line: 793

The events are not shown in my calendar, apparently, no event from this calendar is shown. This happens using Thunderbird 20.0b and Lightning 2.2b1.

A test in Thunderbird 17 with Lightning 1.9 throws another error:
Error: TypeError: calendar is null
Source file: chrome://calendar/content/calendar-task-editing.js
Line: 101

but my events show up in the calendar.
Regression from Bug 605201 ?
Blocks: 605201
Hey Andreas,

could you enable calendar.debug.log and calendar.debug.log.verbose  in the advanced config editor, restart, then check your error console again for any messages that come up just before the actual error?

Possible cause might be a strangely formed <DAV:href> element content.
Flags: needinfo?(mail)
Ok, first of all, I think the second error is unrelated to the first one, because it doesn's occur when I disable all but the one calendar that fails.

Here are the log messages (each separated by a blank line):

CalDAV: send: <?xml version="1.0" encoding="UTF-8"?>
<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:resourcetype/><D:owner/><D:current-user-principal/><D:supported-report-set/><C:supported-calendar-component-set/><CS:getctag/></D:prop></D:propfind>

CalDAV: Status 207 on initial PROPFIND for calendar ownCloud

CalDAV: Authentication scheme for ownCloud is Basic

CalDAV: recv: <?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/</d:href><d:propstat><d:prop><d:current-user-principal><d:href>/owncloud/remote.php/caldav/principals/andreas/</d:href></d:current-user-principal><d:owner><d:href>/owncloud/remote.php/caldav/principals/andreas</d:href></d:owner><cal:supported-calendar-component-set><cal:comp name="VEVENT"/><cal:comp name="VTODO"/><cal:comp name="VJOURNAL"/></cal:supported-calendar-component-set><cs:getctag>114</cs:getctag><d:resourcetype><d:collection/><cal:calendar/></d:resourcetype><d:supported-report-set><d:supported-report><d:report><cal:calendar-multiget/></d:report></d:supported-report><d:supported-report><d:report><cal:calendar-query/></d:report></d:supported-report><d:supported-report><d:report><cal:free-busy-query/></d:report></d:supported-report><d:supported-report><d:report><d:expand-property/></d:report></d:supported-report><d:supported-report><d:report><d:principal-property-search/></d:report></d:supported-report><d:supported-report><d:report><d:principal-search-property-set/></d:report></d:supported-report></d:supported-report-set></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>

CalDAV: initial ctag 114 for calendar ownCloud

Adding supported items: VEVENT,VTODO for calendar: ownCloud

CalDAV: Found principal url from DAV:current-user-principal /owncloud/remote.php/caldav/principals/andreas/

CalDAV: send: OPTIONS https://localhost/owncloud/remote.php/caldav/calendars/andreas/

CalDAV: DAV header: 1, 3, extended-mkcol, calendar-access, calendar-proxy, access-control

CalDAV: Server does not support CalDAV scheduling.

CalDAV: send(https://localhost/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/): <?xml version="1.0" encoding="UTF-8"?>
<D:propfind xmlns:D="DAV:"><D:prop><D:getcontenttype/><D:resourcetype/><D:getetag/></D:prop></D:propfind>

CalDAV: recv: 
<d:multistatus><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/</d:href><d:propstat><d:prop><d:resourcetype><d:collection></d:collection><cal:calendar></cal:calendar></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype></d:getcontenttype><d:getetag></d:getetag></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-0921185a04599d91037de394b472ce91.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"778a31a6f73e44b4bce9c882b44b3a10"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/4569E5B7-0818-4CD7-8AD0-F7B2EEABA63C.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"9e318144dd8f0a09b14f58fa403f0a8a"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/16A46410-97CC-400E-8C04-93CB79B2CF8F.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"defaa84665a58a12f3c8393162de1761"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-93e8115a2fbc1d22669de5266582f334.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"d225105b803f6cdc7a9cbe4c1063a9e5"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-3e5b4f06a90eb9e53df89cf520fd17af.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"175f3331b06124c593a162dfd0e46b05"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-03bea6df2ff05a8760420c1ac56584b8.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"3d228f0caeffde7c14074cd04e113149"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-5b5fb4d14a19b89b16457752ebf3946b.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"92621588302ca730c91a403c67497933"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e99b07c7aa14ad6594c5b368d5bdaa75.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"1ff36e661a36ec0a8aa0abe7a83af874"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c04cbe1ed0b55568141f8655bc68cba4.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"6068a3bd33cf43508205094d10f01f8e"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e8ac5e83814cbbb4b7838c3de4116c2d.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"b0892c3be7e5e2e9dee162872db7a0e1"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-96fa61286c64be1e6aeebf2583cd265a.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"27672b31b28d6c1dc01d52faabc03116"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-53b1edb836f90b2f5624debf958020f1.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f0fe3744f54a271b64a3fe551a3bdeeb"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-14909f39cf09212c676364d5e6e46a01.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"4f379c28057b46deedf47d95f62f3f44"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c293ef94ad82d0422d5f0ff75aab15ce.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"9fc290888f785dd8103ee87d49a1fa35"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e5cc8e1b0fdddb166cedf13e2fbf95a4.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f65bcc0e09cfe9bb08b06c6355c59ffb"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-881ab35eedb971a5145fc4b23948d905.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"4d277ce052a591a16b8ebc6a11379675"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-baa28d5991f9b352929c37d75ef72c0f.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"a37637130bbe06e7ab9681ed7f1386c3"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c2ab3c2ac301d1e70e8f8dc790abda46.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"dfd3fd90017455b7422c3a676effbd38"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-29be70c248c210916fb1c1a078ec53c9.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"118f40d7a640d5f00d69ad34f564bc4c"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/e663db91-90e4-49cc-93cd-c253b8250a96.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"7daa43c2b6f1dcf2777901050100c403"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/9b605431-097e-44a6-901e-3c53303bac9c.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f84bcf89cf71c3c9ed14048f95906be8"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-395530f96c9bbde8781457e35188742f.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"ae44cf1c81fe2a78aeb0de7e5910400d"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-8b2e1b1876a2f22abb1438a2a9963524.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"072f5d31cad89bb9a74f1b079dbbda4b"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6465ff25790847890d1e5be6c80e0443.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"d942d078c531feccfde62d34bd144e1e"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-459eac083b32ac56d20c1b3f13e45d20.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"c8a5335282ef6d34a616beeb3b0a61b2"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-630333ba1c3a1659eea6e52fc1104356.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"27db669d45727a0abce3c74f70602539"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6698108332d87d0e9594e4b7f28e6448.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"1168e2eb3fa2f2a1121b32aef27a6396"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-a6d683db61fd02109c6916d069b3c7af.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f825630a30546dacc1f30c00a0e3229a"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6c5c6f99216704d6751f7426f0d1fb21.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"a1f1bf0bba29af5ccc69deb75ca8026a"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-17482a46045d281868f0a9d5ab309701.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"ce3c75bcaf3f4ee528e1dc8bec8c9983"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-643f74ba7c02803f3c632f103aabd7e9.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"6c297da07ce48f33debd069eb704da67"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e4bc0746f78fc21329fdf556e5004179.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f0337ea716b21b8a8984a0d4edcedd45"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-63da0049947d9e88e690237fd8b503f0.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"84cdeab92f2dd4af7c15c7d281923085"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-86948d2f386e25197823c4fda2570ce2.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"067d6289739b864f679785cf5d999840"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-f5dfba06e0a167d1c19ec095ffcd5603.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"4f9f34c7cac4bab6f4a606585bea41da"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-de866ffe93cce36cf196168a6a6fa584.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"c5cedc0909204e1a62a8484418c95587"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-bb8c0146aa2f7606671a4bb505626adf.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"d35b8bf3ae2cb9cef50127095614de88"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-f6b9e052ba638f79c38c7d5e8ff254dc.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"cb648c26f523c2888fb5ddbf8ec74a72"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c4faf67a5ab934ba135dd8a315e53373.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"c21241027432891200a7887f43193778"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-d0fca021d10896475397b077c8e89773.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"32f5a95622b44e939f3070d455f45d9a"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/d8a63e08-0134-4dea-b2a3-89b43241acc0.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"1fd0ac32de24d7278b0b26690837545a"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/bb9f98ad-c86a-ab45-ae36-40adba5c885b.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"d237b5fd7a1c8a74382eb88b98839c35"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6aa30d2d343dc63c6e64451761451834.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"19ef950f0a8ef214f145de9fb3ec271e"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-cb7a6ed3de3155f2a9cd6734b83af5a0.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"926fe28fd3509884594b27022c9c9960"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-9b6989316baf80561f477a17321da431.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"cb772fb4aafd600ce24125d8d2f5eda6"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-646aab8642a505bad93b70748a4a7a0a.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f09eef57cff5482bc35dcaaa8060ef92"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-70636c8dfe462f5fa875e9ca4be61331.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"d645bd3de55223c23e803a57bf1fa306"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-1ec02a4cae33ba90455c247432b04b23.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"ed07df1415b6dad4277f56e7a828dfad"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-0fdb275fd4f33b4b2d209935519eaa32.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"ad04cd90213645bf4ef23bd6c4f79498"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6a0dddb77d15a908481f5ecd21a921e8.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"9243c15c6e5746e89c3068929bbc43b2"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/18032789-55fe-4c40-b869-d46ce2648b5c.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"abbd5c4bb56925d18ef5a30682145ba6"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-98f289342dd695b43f71c84d1656f22e.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"566ecd11ac5b3f7fb2d159f99ad4d463"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-593c892a20b64ec4d66a852e99b5cf9f.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"a3c25f26fa89d731e444300390d196ca"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-134435bb65d246281565a1231e36f289.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"b2331ad48d74492f3aeefbfe6097c1d5"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/725B2416-3BF6-4A2A-A689-6700C1C8DE30.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"90c9ab43e3efd655a0bd3917b3965f02"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/7052D832-EB55-40A5-89F3-14110FDBD5F2.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"f806ce40b88768cb2809eaeaf27cb56b"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/e605b755-6fed-41dc-bc1a-08bf16e68087.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"b5e853521eaeea05fa98740736f08e67"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/5812c748-666a-ee48-bebe-44875cc7fb89.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"e989f1725aeb135060e1677254ef16e6"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/7d1658b0-ee45-104f-a189-f02c4af8eadc.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"8442de35dd4023820e3005dd4571138c"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/a37c92d3-c39c-134f-9b5e-646a2b706078.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"5a08b0c2b2efc459a32c12459d4dd54c"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/0223fda0-1a60-a747-a403-8320da2a7d1e.ics</d:href><d:propstat><d:prop><d:getcontenttype>text/calendar</d:getcontenttype><d:resourcetype></d:resourcetype><d:getetag>"1b756e8e4c60f383827fff01791e8bc1"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>

CalDAV: send(https://localhost/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/): <?xml version="1.0" encoding="UTF-8"?>
<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:getetag/><C:calendar-data/></D:prop><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/0223fda0-1a60-a747-a403-8320da2a7d1e.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/a37c92d3-c39c-134f-9b5e-646a2b706078.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/7d1658b0-ee45-104f-a189-f02c4af8eadc.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/5812c748-666a-ee48-bebe-44875cc7fb89.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/e605b755-6fed-41dc-bc1a-08bf16e68087.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/7052D832-EB55-40A5-89F3-14110FDBD5F2.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/725B2416-3BF6-4A2A-A689-6700C1C8DE30.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-134435bb65d246281565a1231e36f289.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-593c892a20b64ec4d66a852e99b5cf9f.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-98f289342dd695b43f71c84d1656f22e.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/18032789-55fe-4c40-b869-d46ce2648b5c.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6a0dddb77d15a908481f5ecd21a921e8.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-0fdb275fd4f33b4b2d209935519eaa32.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-1ec02a4cae33ba90455c247432b04b23.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-70636c8dfe462f5fa875e9ca4be61331.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-646aab8642a505bad93b70748a4a7a0a.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-9b6989316baf80561f477a17321da431.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-cb7a6ed3de3155f2a9cd6734b83af5a0.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6aa30d2d343dc63c6e64451761451834.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/bb9f98ad-c86a-ab45-ae36-40adba5c885b.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/d8a63e08-0134-4dea-b2a3-89b43241acc0.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-d0fca021d10896475397b077c8e89773.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c4faf67a5ab934ba135dd8a315e53373.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-f6b9e052ba638f79c38c7d5e8ff254dc.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-bb8c0146aa2f7606671a4bb505626adf.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-de866ffe93cce36cf196168a6a6fa584.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-f5dfba06e0a167d1c19ec095ffcd5603.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-86948d2f386e25197823c4fda2570ce2.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-63da0049947d9e88e690237fd8b503f0.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e4bc0746f78fc21329fdf556e5004179.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-643f74ba7c02803f3c632f103aabd7e9.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-17482a46045d281868f0a9d5ab309701.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6c5c6f99216704d6751f7426f0d1fb21.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-a6d683db61fd02109c6916d069b3c7af.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6698108332d87d0e9594e4b7f28e6448.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-630333ba1c3a1659eea6e52fc1104356.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-459eac083b32ac56d20c1b3f13e45d20.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-6465ff25790847890d1e5be6c80e0443.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-8b2e1b1876a2f22abb1438a2a9963524.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-395530f96c9bbde8781457e35188742f.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/9b605431-097e-44a6-901e-3c53303bac9c.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/e663db91-90e4-49cc-93cd-c253b8250a96.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-29be70c248c210916fb1c1a078ec53c9.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c2ab3c2ac301d1e70e8f8dc790abda46.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-baa28d5991f9b352929c37d75ef72c0f.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-881ab35eedb971a5145fc4b23948d905.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e5cc8e1b0fdddb166cedf13e2fbf95a4.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c293ef94ad82d0422d5f0ff75aab15ce.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-14909f39cf09212c676364d5e6e46a01.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-53b1edb836f90b2f5624debf958020f1.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-96fa61286c64be1e6aeebf2583cd265a.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e8ac5e83814cbbb4b7838c3de4116c2d.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-c04cbe1ed0b55568141f8655bc68cba4.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-e99b07c7aa14ad6594c5b368d5bdaa75.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-5b5fb4d14a19b89b16457752ebf3946b.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-03bea6df2ff05a8760420c1ac56584b8.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-3e5b4f06a90eb9e53df89cf520fd17af.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-93e8115a2fbc1d22669de5266582f334.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/16A46410-97CC-400E-8C04-93CB79B2CF8F.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/4569E5B7-0818-4CD7-8AD0-F7B2EEABA63C.ics</D:href><D:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/owncloud-0921185a04599d91037de394b472ce91.ics</D:href></C:calendar-multiget>

Timestamp: 11.03.13 20:46:12
Error: resPathComponents[endBasePos] is undefined
Source File: file:///Users/andreas/Library/Thunderbird/Profiles/ntohspy8.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calDavCalendar.js
Line: 1043

Timestamp: 11.03.13 20:46:12
Warning: CalDAV: Fatal Error doing multiget for ownCloud

CalDAV: recv: 
<d:multistatus><d:response><d:href>/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/0223fda0-1a60-a747-a403-8320da2a7d1e.ics</d:href><d:propstat><d:prop><cal:calendar-data>BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20121226T222619Z
LAST-MODIFIED:20130103T200217Z
DTSTAMP:20130103T200217Z
UID:0223fda0-1a60-a747-a403-8320da2a7d1e
SUMMARY:Geburtstagsfeier Anja Leiner
DTSTART;TZID=Europe/Berlin:20130106T103000
DTEND;TZID=Europe/Berlin:20130106T153000
CLASS:PUBLIC
SEQUENCE:1
X-MOZ-GENERATION:1
END:VEVENT
END:VCALENDAR
</cal:calendar-data><d:getetag>"1b756e8e4c60f383827fff01791e8bc1"</d:getetag></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat>

aChangeLogListener=null
calendarURI=https://localhost/owncloud/remote.php/caldav/calendars/andreas/default%20calendar/ 
iscached=false
this.mQueuedQueries.length=12
Flags: needinfo?(mail)
As discussed with Philipp, I changed the CalDAV-URL to "defaultcalendar" instead of "default%20calendar" (had to do this directly in the database, urgh), but that did the trick: synchronization worked instantly.
I'm tempted to backout the original patch. I left enough typos in it to make it not useful anyway and I am surprised it worked when I tested it.

As a real fix I am working on a patch that saves the full location path always and just uses that one. Its not working with inbox urls yet, but from following code it seems there is something broken anyway. Its risky enough that we should only commit on comm-central though.

We really need to conquer and divide that code and add tests for specific parts.
Attached patch Back it out - v1Splinter Review
I'm going to "fix" this bug by backing out the patch. I've tested this on Andreas' server and it works for me.

To fix the real issue, we should consider better URL handling in the caldav provider. Chopping things apart and making assumptions is really a bad idea.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #724875 - Flags: review?(matthew.mecca)
Attachment #724875 - Flags: approval-calendar-beta?(matthew.mecca)
Attachment #724875 - Flags: approval-calendar-aurora?(matthew.mecca)
Comment on attachment 724875 [details] [diff] [review]
Back it out - v1

r=mmecca
Attachment #724875 - Flags: review?(matthew.mecca)
Attachment #724875 - Flags: review+
Attachment #724875 - Flags: approval-calendar-beta?(matthew.mecca)
Attachment #724875 - Flags: approval-calendar-beta+
Attachment #724875 - Flags: approval-calendar-aurora?(matthew.mecca)
Attachment #724875 - Flags: approval-calendar-aurora+
Target Milestone: --- → 2.2
You need to log in before you can comment on or make changes to this bug.