mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.26k stars 1.37k forks source link

The mobile client crash due to the file name in the channel #8359

Open Yosh11 opened 2 hours ago

Yosh11 commented 2 hours ago

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)

Screenshot of the error.

enahum commented 2 hours ago

@larkox can you link your PR to close this issue?