workaround for services.m.c 500 error on some GET requests

This commit is contained in:
Dan Mills 2008-03-12 23:06:28 -07:00
parent cdbd7976e2
commit 732f6b234c

View File

@ -341,6 +341,13 @@ WeaveSyncService.prototype = {
throw "Created user directory, but login still failed. Aborting."; 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); this._dav.GET("private/privkey", self.cb);
let keyResp = yield; let keyResp = yield;
Utils.ensureStatus(keyResp.status, Utils.ensureStatus(keyResp.status,