EWS calendar appointment cannot be saved with attachment that has comma in file name
Issue: You cannot save a file that contains a comma "," in its file name to an appointment in an EWS calendar (Microsoft Exchange Server 2016 mailbox). During investigation I noticed evolution#2626 (moved) which might or might not be related.
Overview: File name "te,st" (empty content):
- can be saved as appointment attachment:
- in a local account in Evolution 3.50.2 on Fedora 39.
- using Exchange webmail interface (used with Firefox 121.0 on Fedora 38) and Microsoft Outlook 2019 on Windows Enterprise 10 (both 64-bit). That appointment and attachment can be opened by Evolution 3.48.4 on Fedora 38 and Evolution 3.50.2 on Fedora 39.
- cannot be saved as EWS calendar appointment attachment in Evolution 3.48.4 on Fedora 38 as well as in Evolution 3.50.2 on Fedora 39.
Package versions on Fedora 38:
$ rpm -qa *evolution* | sort
evolution-3.48.4-1.fc38.x86_64
evolution-data-server-3.48.4-1.fc38.x86_64
evolution-data-server-langpacks-3.48.4-1.fc38.noarch
evolution-ews-3.48.2-2.fc38.x86_64
evolution-ews-langpacks-3.48.2-2.fc38.noarch
evolution-langpacks-3.48.4-1.fc38.noarch
evolution-pst-3.48.4-1.fc38.x86_64
On Fedora 39:
$ rpm -qa *evolution* | sort
evolution-3.50.2-1.fc39.x86_64
evolution-data-server-3.50.2-1.fc39.x86_64
evolution-data-server-langpacks-3.50.2-1.fc39.noarch
evolution-ews-3.50.2-2.fc39.x86_64
evolution-ews-langpacks-3.50.2-2.fc39.noarch
evolution-langpacks-3.50.2-1.fc39.noarch
evolution-pst-3.50.2-1.fc39.x86_64
Steps to reproduce:
- create file "te,st" in your home directory "/home/user"
- configure EWS account in Evolution
- switch to Evolution calendar window
- create new appointment:
- in General tab:
- Calendar: Calendar (your EWS calendar might be named differently)
- Summary: test
- in Attachments tab: attach file from step 1
- click [Save and Close] button
- in General tab:
- in appointment window at top a warning header appears with text:
Failed to create an event in the calendar "REDACTED@REDACTED : Calendar"
Cannot create calendar object: Error opening file /home/user/.cache/evolution/calendar/d34f 0bb2a9cbf4eecd6072b23c33166ef7200b12/fb64896edae6d8ffe0429954aadd1661e7a8c1d3-te\,st: No such file or directory
- note: If you run
ls ...path as given in Evolution window...
you can see the file does exist and is fine. The actual file name does not contain backslash.
- note: If you run