? ? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
4 Feb 2017

Partial Pull Request for Issue #13357

Summary of Changes

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

  1. The call to clean the cache is now wrapped in a try/catch so a cache error doesn't result in something calling that method and catching exceptions treating the operation as a failure or an unhandled exception in general.

  2. A new parameter is added to the arguments array for the cache clean event dispatched after this with a boolean flag indicating the result of the clean operation.

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 JModelLegacy::cleanCache() won't cause an uncaught exception from the cache API to bubble up the call stack. When clearing the cache fails here, the event should be dispatched with the result flag being false.

Documentation Changes Required

N/A

avatar mbabker mbabker - open - 4 Feb 2017
avatar mbabker mbabker - change - 4 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2017
Category Libraries
avatar alikon
alikon - comment - 6 Feb 2017

I have tested this item successfully on a5c44ef


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

avatar alikon
alikon - comment - 6 Feb 2017

I have tested this item successfully on a5c44ef


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

avatar alikon alikon - test_item - 6 Feb 2017 - Tested successfully
avatar csthomas
csthomas - comment - 6 Feb 2017

I have tested this item successfully on a5c44ef


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

avatar csthomas csthomas - test_item - 6 Feb 2017 - Tested successfully
avatar zero-24 zero-24 - change - 6 Feb 2017
Milestone Added:
Status Pending Ready to Commit
Labels Added: ? ?
avatar rdeutz rdeutz - change - 8 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-08 14:07:20
Closed_By rdeutz
Labels
avatar rdeutz rdeutz - close - 8 Feb 2017
avatar rdeutz rdeutz - merge - 8 Feb 2017

Add a Comment

Login with GitHub to post a comment