Forum

Support for HTTP Method "MKCALENDAR"

Manfred Kaiser
31 March 2016, 16:49
Hello,

I´m using Owncloud 9 and Hiawatha Server, which ist a really good combination.

But the CalDav Service of Owncloud 9 uses "MKCALENDAR" to create new calendars. Changing the method in Owncloud to POSTworks, but it breaks the ownclouds code integrity check

I implemented the MKCALENDAR method - so no code changes are neccesary in Owncloud.

The function "determine_request_method" in "session.c" follwing check can be added:

else if (strncmp(session->request, "MKCALENDAR ", 11) == 0) {
session->request_method = POST;
}


I use POST, because it works without any problems.
Hugo Leisink
1 April 2016, 00:59
If you change 'POST' to 'unsupported', does it then still work? Because that would be the prefered setting.
Manfred Kaiser
1 April 2016, 10:06
I have changed 'POST' to 'unsupported' and it still works.

else if (strncmp(session->request, "MKCALENDAR ", 11) == 0) {
session->request_method = unsupported;
}


What is the difference between 'POST' and 'unsupported' and why is 'unsupported' prefered?
Hugo Leisink
1 April 2016, 13:37
Via 'unsupported', Hiawatha will respond in a correct way (501 Not Implemented) when WebDAVapp is set to no.
Manfred Kaiser
4 April 2016, 12:23
Thanks for the answer
This topic has been closed.