? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
9 Jan 2017

Partial Pull Request for Issue #13357

Summary of Changes

Similar to #13524 this tries to make the admin JPluginHelper class resilient to cache related issues.

  1. The lambda function is now stored in a variable for use in the error handling cases.

  2. Cache exceptions are caught and the lambda function will attempt to be run directly instead.

  3. On a database failure, we're out of luck; sorry.

Testing Instructions

If the cache store fails to connect or the cache configuration is bad, the exceptions thrown by the cache API should be caught and JPluginHelper::load() try to manually execute the lambda function to load the data. The method is already not dealing with database errors so no new error handling is added regarding that.

Documentation Changes Required

N/A

avatar mbabker mbabker - open - 9 Jan 2017
avatar mbabker mbabker - change - 9 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jan 2017
Category Libraries
avatar csthomas
csthomas - comment - 9 Jan 2017

I want to test you PR but other part of joomla failed.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORparent_id= 0' at line 3
in libraries/joomla/access/access.php:427

I have created PR for that at #13528.

avatar mbabker
mbabker - comment - 29 Jan 2017

Would like some tests here. Getting 3.7 in a state where some of the core API is resilient to cache store errors would be a huge improvement for user experience.

avatar wilsonge
wilsonge - comment - 30 Jan 2017

I have tested this item successfully on 4b57a10

Before patch in backend got cache exception when memcached server turned off. After patch plugin exception was resolved and got the same error reported by @csthomas


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

avatar wilsonge wilsonge - test_item - 30 Jan 2017 - Tested successfully
avatar wilsonge wilsonge - change - 30 Jan 2017
Status Pending Ready to Commit
avatar wilsonge wilsonge - alter_testresult - 30 Jan 2017 - csthomas: Tested successfully
avatar wilsonge
wilsonge - comment - 30 Jan 2017

RTC


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

avatar rdeutz rdeutz - change - 30 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-30 12:49:44
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 30 Jan 2017
avatar rdeutz rdeutz - merge - 30 Jan 2017

Add a Comment

Login with GitHub to post a comment