User tests: Successful: Unsuccessful:
Pull Request for Issue #31837 .
Create a custom exception that we can catch to cover cases where images can't be parsed
Add an XCF image into your images folder (e.g. https://stendhalgame.org/wiki/File:Sample-column.xcf) that can't be parsed by PHP. Note you can't do this through image manager upload.
No images in the folder will load
Images load
None
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries Front End Plugins |
I have tested this item
Yup. It's the same thing that's shown for example when you upload a PDF
i assumed so hence the successful test but wanted to be certain
Title |
|
I have tested this item
Works as described. one thought: should the error message be translatable string? I guess not if it is caught and not displayed.
As you say it’s pretty rare our exceptions get displayed to the user - so nope not required here
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-03 11:33:37 |
Closed_By | ⇒ | HLeithner | |
Labels |
Thanks
I am assuming that its the expected behaviour that the xcf image that couldnt be parsed is displayed as below