Images with question mark character in filenames are not displayed, and cannot be downloaded
Please first check if another issue has been opened for your problem
Versions
- OS: Ubuntu 20.04.1
- Gajim version: 1.2.91+7ac4ba3b
- GTK version: 3.24.20
- Python-nbxmpp version: 1.91.0
Steps to reproduce the problem
- Upload image file with special name, I suspect containing a question mark.
Expected behavior
- File is automatically downloaded and displayed.
- If not, click on the file and it downloads and can be saved.
Actual behavior
File is only displayed in some cases. In other cases, one cannot even download the file. Conversations does display the files correctly. From the attached images, only those without a question mark in the filename are displayed.
The other are displayed as a aesgcm:// link aesgcm:////f1ba3e06-1294-40a2-b249-d4ec78166a8c/org.gajim.Gajim.png%3fwidth%3d64.png#c3...60
If I click on the link the below download window is shown and it is stuck perpetually. Note that this is indeed the org.gajim.Gajim.png?width=64.png, and everything starting from the "?" is not processed somehow.
Nnote that the filenames I sent are the following, each one with the same content, but different name. gitlab automatically converts the filenames:
org.gajim.Gajim.png
org.gajim.Gajim.png?width=64.png
org.gajim.Gajim.png?width.png
org.gajim.Gajim.width=64.png
org.gajim.Gajim?width.png