maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [SOLVED] N9 vs. CALDav: Can't delete calendar events on the DAViCal server (https://talk.maemo.org/showthread.php?t=85548)

talmage 2012-07-17 16:52

[SOLVED] N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
For those of us using CalDAV, is your N9 able to delete calendar events on your CalDAV server? I'm using DAViCal as my server. My N9 can't delete calendar events. I'm in touch with the developers and we're not sure if it's an N9 bug or a DAViCal bug.

The issue seems to be that the N9 sends a content-type='application/xml' header in its DELETE requests. The request body, however, is empty. DAViCal treats that as an error. According to the developers, the standard says there shouldn't be a request body for DELETE. Apparently, the standard doesn't say what to do.

If it works for you, please tell me which CalDAV server you're using. That would help a lot.

erendorn 2012-07-17 17:39

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
Just checked, and it deletes fine. I'm using SOGo for my CalDav server.

For me the only issue is that when I mark tasks as completed on my N9 it doesn't get synced with the server, but it's no big deal.

jem555 2012-07-17 21:43

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
Hi. If I'm not misunderstanding you're syncing N9's caldav with SOGo and it's working fine. Right?

Well, I've tried it but have 2 problems:
- tasks only sync one way (from n9 to SOGo)
- calendar events shift 1 or 2 hours from the original time it was created.

Syncevolution on N9 and N900 (this one with caldav) works ok. And SOGo configuration is ok too. Caldav on ipad and android device is working ok.
Please tell what could be wrong if you have an idea.
Thanks!

talmage 2012-07-18 03:04

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
It's working now! I've asked with one of the DAViCal developers on irc #davical at oxygen.oftc.net. He or she supplied me with a patch that worked. FWIW, I didn't apply the patch using patch(1). Instead, I applied the three changes in the right spot in my installation. I did that because the developer is working with a different version than the one I installed.

talmage 2012-07-19 17:55

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
I suppose I should explain the cause of the problem. It's perhaps a bug in the N9's implementation of CalDAV.

When the N9 sends a DELETE message, it includes the Content-Type: "application/xml" header and no Content-Length. (I think this implies Content-Length:0.) Apparently, the CalDAV spec says that DELETE has no body, so there isn't any need to send the Content-Type header.

This confused DAViCal. According to the developer, the spec doesn't cover this particular case. The patch he or she gave me fixes the issue.

jalyst 2012-07-20 07:41

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
Quote:

Originally Posted by talmage (Post 1239888)
I suppose I should explain the cause of the problem. It's perhaps a bug in the N9's implementation of CalDAV.

When the N9 sends a DELETE message, it includes the Content-Type: "application/xml" header and no Content-Length. (I think this implies Content-Length:0.) Apparently, the CalDAV spec says that DELETE has no body, so there isn't any need to send the Content-Type header.

This confused DAViCal. According to the developer, the spec doesn't cover this particular case. The patch he or she gave me fixes the issue.

Thanks for sharing this, it would be great if you could post that here.
That's the official bug tracker since the real one was closed a few weeks after PR1.2.
It's the only place Harmattan devs are still screening....
Of course it's no guarantee it'll be fixed, but at least it's being placed in front of them.
Alternately if there's already the same or similar issue in the tracker, you could add to the existing notes in the ticket.

talmage 2012-10-03 17:22

Re: N9 vs. CALDav: Can't delete calendar events on the DAViCal server
 
Quote:

Originally Posted by jalyst (Post 1240117)
Thanks for sharing this, it would be great if you could post that here.

Thanks for the suggestion, jaylst. I posted my bug bug report.


All times are GMT. The time now is 18:30.

vBulletin® Version 3.8.8