Fix
bug 930132 - Chunked webdav-sync is not handled [status: HTTP/1.1 507 Insufficient Storage] [Error: Assert failed: unexepcted endBatch!]. - followup patch. r=philipp,a=philipp
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -1224,16 +1224,17 @@ calDavCalendar.prototype = {
let locationPath = this.getItemLocationPath(aItem);
let itemUri = this.makeUri(locationPath);
let multiget = new multigetSyncHandler([this.ensureDecodedPath(itemUri.path)],
this,
this.makeUri(),
null,
+ false,
aListener,
aChangeLogListener);
multiget.doMultiGet();
},
// void getItem( in string id, in calIOperationListener aListener );
getItem: function caldav_getItem(aId, aListener) {
this.mOfflineStorage.getItem(aId, aListener);
--- a/calendar/providers/caldav/calDavRequestHandlers.js
+++ b/calendar/providers/caldav/calDavRequestHandlers.js
@@ -157,16 +157,17 @@ etagsHandler.prototype = {
!this.calendar.isInbox(this.baseUri.spec)) {
this.calendar.pollInbox();
}
} else {
let multiget = new multigetSyncHandler(this.itemsNeedFetching,
this.calendar,
this.baseUri,
null,
+ false,
null,
this.changeLogListener)
multiget.doMultiGet();
}
},
onDataAvailable: function eSL_onDataAvailable(request, context, inputStream, offset, count) {
if (this._reader) {