From 4fd10f52ed2b37891fdfcd27764f61d69ee355a3 Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Wed, 12 Mar 2008 23:06:28 -0700 Subject: [PATCH] workaround for services.m.c 500 error on some GET requests --- services/sync/modules/service.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js index ee3f09e30d0..0a4ed2022c4 100644 --- a/services/sync/modules/service.js +++ b/services/sync/modules/service.js @@ -341,6 +341,13 @@ WeaveSyncService.prototype = { throw "Created user directory, but login still failed. Aborting."; } + // FIXME: remove this after services.m.c gets fixed to not + // return 500 from a GET when parent dirs don't exist + this._dav.MKCOL("private/", self.cb); + ret = yield; + if (!ret) + throw "Could not create private key directory"; + this._dav.GET("private/privkey", self.cb); let keyResp = yield; Utils.ensureStatus(keyResp.status,