? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
18 Dec 2020

Pull Request for Issue #30972 .

Summary of Changes

Adds sanity checks in com_template dealing with the asset file. You can no longer delete the file, rename it and it enforces valid JSON (reverting the file contents if there is invalid JSON).

Testing Instructions

Try deleting the asset file from cassiopia - Currently gives a 500 error to the template. After patch blocked
Try renaming the file - same result as above
Try making the file have invalid JSON (by removing a comma or quote etc). - before 500 error on the template. After error message shown and file contents reverted to last stable version

Documentation Changes Required

None

avatar wilsonge wilsonge - open - 18 Dec 2020
avatar wilsonge wilsonge - change - 18 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Dec 2020
Category Administration com_templates Language & Strings
avatar wilsonge wilsonge - change - 18 Dec 2020
Title
Add sanity checks on the asset file
[4.0] Add sanity checks on the asset file
avatar wilsonge wilsonge - edited - 18 Dec 2020
avatar Fedik
Fedik - comment - 19 Dec 2020

I have tested this item successfully on 9157a53


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

avatar Fedik Fedik - test_item - 19 Dec 2020 - Tested successfully
avatar gostn
gostn - comment - 19 Dec 2020

I have tested this item successfully on 9157a53


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

avatar gostn gostn - test_item - 19 Dec 2020 - Tested successfully
avatar wilsonge wilsonge - change - 19 Dec 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-19 12:17:30
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 19 Dec 2020
avatar wilsonge wilsonge - merge - 19 Dec 2020
avatar wilsonge
wilsonge - comment - 19 Dec 2020

Thanks!

avatar PhilETaylor
PhilETaylor - comment - 13 Jan 2021

But you can still delete index.php :-) :-)

avatar PhilETaylor
PhilETaylor - comment - 13 Jan 2021

Forked to #32026 as not to be lost as this PR is already merged.

Add a Comment

Login with GitHub to post a comment