GNOME Bugzilla – Bug 660748
Cann't save attachment in event
Last modified: 2013-07-29 11:10:18 UTC
Evolution 3.2 + Exchange 2007 1. New -> Appointment 2. Add an attachment 3 [details]. Fill summary, description 4. Save appointment 5. It will throw an error - Could not save attachments , invalid filename 6. Event will be saved without attachment
I can attach files to events/appointments but when I reopen the event the attachment contains comp UID as prefix to attachment name.
Created attachment 210164 [details] [review] Patch for evolution-ews Patch for fetching attachments and renaming it appropriately.
Still reproduceable with git master, confirming. When I edit an old appointment with attachments and add a new one into it, then the save will not claim any error, but the attachments are removed from the event. The evolution's UI pretends everything is OK, but the OWA interface shows no attachments on the event. The calendar-factory console shows a runtime warning: > ** (evolution-calendar-factory:3553): WARNING **: Error while creating > attachments: Failed to open file 'file:///home/mcrha/.cache/evolution/ > calendar/xxx/<ews-id>-file.txt': No such file or directory
Created attachment 250358 [details] [review] ews patch for evolution-ews; The previously attached patch doesn't work, unfortunately, it makes the calendar factory crash. This patch adapts to more recent changes, like the addition of EEwsAttachmentInfo, where I also added prefer_filename property, which is useful in calendar. The runtime warning from above is a typo in e_ews_connection_attach_file(), which used the original 'uri' in call of g_file_get_contents(), instead of converted 'filepath'.
I forgot to add, the patch also fixes unneeded attachment removals - there could be dropped all attachments on save of the event.
Created commit 0dfaeb4 in ews master (3.9.90+)