jsDAV icon indicating copy to clipboard operation
jsDAV copied to clipboard

CalDAV. What to do with MKCALENDAR request?

Open Olegas opened this issue 11 years ago • 4 comments

In CalDAV, new calendar is made via non-standard HTTP request MKCALENDAR. Current version of NodeJS have no support for non-standard custom methods like this one (https://groups.google.com/forum/#!msg/nodejs/0KDuxleCoxE/oVDCzka_4nYJ).

What workaround can be recommended for this?

Olegas avatar Jun 11 '14 04:06 Olegas

One of possible workarounds is to setup a frontend server (like Nginx or else) and rewrite this method to some other (POST maybe?) and add special header (X-Original-Method: MKCALENDAR) then on NodeJS side rewrite it back before passing to DAV server

Olegas avatar Jun 11 '14 04:06 Olegas

Another possible workaround is to implement some HTTP-server with node-parsely (https://github.com/substack/node-parsley) and create some custom objects implementing request/response public API, when pass them to DAV server

Olegas avatar Jun 11 '14 04:06 Olegas

Apparently it all boils down to https://github.com/joyent/node/issues/3192 -> https://github.com/joyent/http-parser/pull/158

Did you try the method in last message of this thread https://groups.google.com/forum/#!msg/nodejs/0KDuxleCoxE/oVDCzka_4nYJ, may be the random dropping behaviour was solved in latest nodes.

aenario avatar Jun 11 '14 05:06 aenario

@aenario no, I'm not. Just discovered this issue last night. Still discovering.

I think I will use front-end method in my case (I'm already have Nginx instance in front of my CalDAV server)

Olegas avatar Jun 11 '14 07:06 Olegas