? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
2 Jan 2021

Pull Request for Issue #31837 .

Summary of Changes

Create a custom exception that we can catch to cover cases where images can't be parsed

Testing Instructions

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.

Actual result BEFORE applying this Pull Request

No images in the folder will load

Expected result AFTER applying this Pull Request

Images load

Documentation Changes Required

None

avatar wilsonge wilsonge - open - 2 Jan 2021
avatar wilsonge wilsonge - change - 2 Jan 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2021
Category Libraries Front End Plugins
avatar brianteeman
brianteeman - comment - 3 Jan 2021

I am assuming that its the expected behaviour that the xcf image that couldnt be parsed is displayed as below
image

avatar brianteeman
brianteeman - comment - 3 Jan 2021

I have tested this item successfully on d7c6194


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31845.

avatar brianteeman brianteeman - test_item - 3 Jan 2021 - Tested successfully
avatar wilsonge
wilsonge - comment - 3 Jan 2021

Yup. It's the same thing that's shown for example when you upload a PDF

avatar brianteeman
brianteeman - comment - 3 Jan 2021

i assumed so hence the successful test but wanted to be certain

avatar wilsonge wilsonge - change - 3 Jan 2021
Title
Cover cases where the image can't be parsed
[4.0] Cover cases where the image can't be parsed
avatar wilsonge wilsonge - edited - 3 Jan 2021
avatar ceford
ceford - comment - 3 Jan 2021

I have tested this item successfully on d7c6194

Works as described. one thought: should the error message be translatable string? I guess not if it is caught and not displayed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31845.

avatar ceford ceford - test_item - 3 Jan 2021 - Tested successfully
avatar wilsonge
wilsonge - comment - 3 Jan 2021

As you say it’s pretty rare our exceptions get displayed to the user - so nope not required here

avatar richard67 richard67 - change - 3 Jan 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 3 Jan 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31845.

avatar richard67 richard67 - change - 3 Jan 2021
Labels Added: ? ?
avatar HLeithner HLeithner - change - 3 Jan 2021
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
avatar HLeithner
HLeithner - comment - 3 Jan 2021

Thanks

Add a Comment

Login with GitHub to post a comment