Closed Bug 569572 Opened 14 years ago Closed 14 years ago

Events from eGroupware CalDAV resource are not displayed when program is started

Categories

(Calendar :: Provider: CalDAV, defect)

Lightning 1.0b1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: karaluh, Assigned: nomisvai)

Details

(Whiteboard: [needed chemspill][CalDAV server: eGroupWare])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux; pl-PL) AppleWebKit/532.4 (KHTML, like Gecko) rekonq Safari/532.4
Build Identifier: Sunbird and lightning beta 1

As in summary. To display the events you have to create a new one. Cache is enabled.

Reproducible: Always
Still there in beta 2 rc1
Version: unspecified → Trunk
Is it possible to have a test account and config info for this server?  Thanks.
Assignee: nobody → simon.at.orcl
I've sent you an e-mail with the test acount details. Configuration:
server: http://83.13.159.107/egroupware/groupdav.php/calendar
show reminders and cache enabled.
This issue is caused by 2 things:
1) eGroupWare server does not have the resourcetype property set on all its DAV resources as required by RFC 4918, which means that a response element from a eGroupWare server looks like this (Note the unexpected Status 404):

 <D:response xmlns:ns0="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
  <D:href>http://83.13.159.107/egroupware/groupdav.php/calendar/336.ics</D:href>
   <D:propstat>
    <D:prop>
     <D:getetag>336:2:a77a8ddbf537ba706b65e02ce901fb68</D:getetag>
     <D:getcontenttype>text/calendar; charset=utf-8; component=VEVENT</D:getcontenttype>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
  </D:propstat>
   <D:propstat>
    <D:prop>
     <D:resourcetype/>
   </D:prop>
   <D:status>HTTP/1.1 404 Not Found</D:status>
  </D:propstat>
 </D:response>

2) Bad parsing of the status element in the calDav request handler means that it thinks the response status is 404 (there is no response status in a propfind response, only propstat status.

Fix: Remove the unneeded status check, relying on the href, getcontenttype and etag being set to non-null values is sufficient to determine if we should do a multiget on each resources.
Attachment #456162 - Flags: review?(philipp)
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Whiteboard: [needed chemspill]
Comment on attachment 456162 [details] [diff] [review]
Fix for eGroupware caldav support

Looks fine, r=philipp
Attachment #456162 - Flags: review?(philipp) → review+
Hardware: x86 → All
Whiteboard: [needed chemspill] → [needed chemspill][CalDAV server: eGroupWare]
Version: Trunk → Lightning 1.0b1
Does this fix Bug 579553 too? Is it the same issue or a different issue?
Setting checkin-needed as this patch had been reviewed almost two weeks ago, and no checkin occurred.
Keywords: checkin-needed
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/5e2cc46e7154>
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0b3
We are still having problems regarding this issue. Using Shredder 3.3a1pre and Lightning 1.1a1pre we get the "404 not found" server response mentioned in comment 4. Shall I re-open the bug?
(In reply to comment #9)
> We are still having problems regarding this issue. Using Shredder 3.3a1pre and
> Lightning 1.1a1pre we get the "404 not found" server response mentioned in
> comment 4. Shall I re-open the bug?

Swen, please open a new one and reference this bug.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: