The application crashes with the error 'Unexpected error occurred' when there is a file with a name like '*%.xlsx'.
Environment Information
Device Name: iPhone 14 Pro
OS Version: ios 17.6.1
Mattermost App Version: 2.22.0 (Build 574)
Mattermost Server Version: 9.11.3 (Build 11258453163
Steps to reproduce
A file with a name like '*%.xlsx' is attached to the message, after which the application on the iPhone crashes when trying to access this channel with this file. No errors are observed in the desktop application; however, such a file is absent in the 'View info > Files' tab. The indexing may be breaking.
Expected behavior
No error when entering the channel from the iPhone.
Possible fixes
If the file is removed from the channel, the problem disappears, and the same error also goes away if the same file is sent but with the '%' sign removed before the period.
Summary
The application crashes with the error 'Unexpected error occurred' when there is a file with a name like '*%.xlsx'.
Environment Information
Steps to reproduce
A file with a name like '*%.xlsx' is attached to the message, after which the application on the iPhone crashes when trying to access this channel with this file. No errors are observed in the desktop application; however, such a file is absent in the 'View info > Files' tab. The indexing may be breaking.
Expected behavior
No error when entering the channel from the iPhone.
Possible fixes
If the file is removed from the channel, the problem disappears, and the same error also goes away if the same file is sent but with the '%' sign removed before the period.
Observed behavior (that appears unintentional)