rem: calendarPublish(calendarString, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar"); 
add: calendarPublish(calendarString, CalendarPublishObject.remotePath, "text/calendar"); 
context: function publishCalendarDataDialogResponse( CalendarPublishObject ){   var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents );      calendarPublish(calendarString, CalendarPublishObject.remotePath, CalendarPublishObject.username, CalendarPublishObject.password, "text/calendar");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/58ff24eb3442a99dc4ae0b5e8da801a490834202/calendar.js/buggy/calendar/resources/content/calendar.js