rem: var channel = ioService.newChannelFromURI(savedthis.mUri); 
add: var channel = ioService.newChannelFromURI(fixupUri(savedthis.mUri)); 
context:             onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)            {                // All events are returned. Now set up a channel and a                // streamloader to upload.                // Will call onStopRequest when finised.                var icsStr = calComp.serializeToICS();                var ioService = Components.classes["@mozilla.org/network/io-service;1"]                                          .getService(Components.interfaces.nsIIOService);                var channel = ioService.newChannelFromURI(savedthis.mUri);                channel.notificationCallbacks = savedthis;                var uploadChannel = channel.QueryInterface(Components.interfaces.nsIUploadChannel);                var postStream = Components.classes["@mozilla.org/io/string-input-stream;1"]                                           .createInstance(Components.interfaces.nsIStringInputStream);                postStream.setData(icsStr, icsStr.length);                uploadChannel.setUploadStream(postStream, "text/calendar", -1);                channel.asyncOpen(savedthis, savedthis);            },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/52a70e374ad76cff1b985e70afbcb31a63f783bf/calICSCalendar.js/clean/calendar/providers/ics/calICSCalendar.js