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
authorSven Giermann <giermann@funke.de>
Wed, 04 Dec 2013 15:21:07 +0100
changeset 16050 a2f5b206e52b5d8526f66ab0b689247e07a77d77
parent 16049 387cf577bc36c8036ed0ee7dd04257a8898ff4db
child 16051 9711f03accf92f6321670ebd89f1d3752ec1ae19
push id27
push usermozilla@kewis.ch
push dateWed, 04 Dec 2013 14:31:09 +0000
reviewersphilipp, philipp
bugs930132
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
calendar/providers/caldav/calDavCalendar.js
calendar/providers/caldav/calDavRequestHandlers.js
--- 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) {