Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yosh11 opened this issue Nov 19, 2024 · 3 comments · May be fixed by #8344
Open

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

Yosh11 opened this issue Nov 19, 2024 · 3 comments · May be fixed by #8344
Labels
Bug Report/Open Bug report/issue

Comments

@Yosh11
Copy link

Yosh11 commented Nov 19, 2024

Summary

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.

Observed behavior (that appears unintentional)

Screenshot of the error.

@enahum
Copy link
Contributor

enahum commented Nov 19, 2024

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

@larkox larkox linked a pull request Nov 19, 2024 that will close this issue
@oleynikd
Copy link

Confirmed: This issue occurs specifically when uploading PDF files with "%" characters in the filename.

Steps to reproduce:

  1. Upload a PDF file containing "%" in filename (example file attached) from desktop app
  2. Open this channel on Android or iOS app
  3. Observe the error

Additional testing notes:

  • Consistently reproducible with PDF, XLSX, CSV files
  • No problems observed when uploading image files with "%" in filename

Mattermost_logo_%_vertical_black.pdf

@simevo
Copy link

simevo commented Nov 23, 2024

same here!

@amyblais amyblais added the Bug Report/Open Bug report/issue label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report/Open Bug report/issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants