Calendar export fails with 'Unable to write to file' message. Steps to Reproduce: 1. Switch to Calendars pane 2. Select 'Export Calendar...' from context menu 3. Select format, name and location. Press Ok. Actual Results: A dialog is shown with title "Error getting calendar" and message "Unable to write to file:<location>". The target file is created but is empty. Works in sunbird-0.3a2+.en-US.win32-2006-08-14-09-trunk Fails in sunbird-0.3a2+.en-US.win32-2006-08-14-12-trunk
Created attachment 233631 [details] [diff] [review] extra arg I suck. It's throwing "not enough args." Regression from the print-title bug that I checked in inside that window.
Comment on attachment 233631 [details] [diff] [review] extra arg r1=lilmatt
Error: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: chrome://calendar/content/publish.js :: publishItemArray :: line 197" data: no] Please check if there are more calls to exportToStream() affected.
Created attachment 233667 [details] [diff] [review] also publishing Also includes the changes to publish.js. According to http://lxr.mozilla.org/mozilla/search?string=exporttostream this should be it.
Comment on attachment 233667 [details] [diff] [review] also publishing r1=lilmatt
Comment on attachment 233667 [details] [diff] [review] also publishing r=dmose
patch checked in.