REPRODUCIBILITY: 100%
OS VERSION: 4.5.0.24
HARDWARE: Xperia 10 III (but probably independent of the hardware)
UI LANGUAGE: German
REGRESSION: Don’t know
DESCRIPTION:
The gallery won’t open files if they have a suffix, that doesn’t match their file type (Like .png instead of .jpg). The gallery does open, but it just shows an error message that the file couldn’t be loaded though.
Files without a suffix work fine though.
PRECONDITIONS:
While this was discovered via some email attachments, in practice it can be reproduced with any image file.
STEPS TO REPRODUCE:
- Have an image file like: A.jpg
- Rename the suffix to be wrong, like: A.png
- Open the file (via the file browser or via
gdbus call -d com.jolla.gallery -e -o /com/jolla/gallery/ui -m com.jolla.gallery.ui.openUrl '["file:/home/defaultuser/Downloads/A.png"]'
EXPECTED RESULT:
The image file opens correctly, since the file format can still be discovered and files without a suffix open correctly as well.
ACTUAL RESULT:
The file doesn’t open and shows a generic error message instead.
MODIFICATIONS:
ADDITIONAL INFORMATION:
This was discussed and troubleshooted on the fediverse: Johannes Brakensiek: "@deepbluev7@nheko.io @flypig@mastodon.social To t…" - Fosstodon