PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
14 Jul 2023

Summary of Changes

This is based on a code review and I am going to have to rely on better coders to confirm my assumption and the proposed fix.

From my reading of the code this change is needed in the CacheController for J5 as without the change it is relying on the classmap which is not enabled by default and core should not require.

The code is cloned from libraries\src\Cache\CacheStorage.php so it should be correct

avatar joomla-cms-bot joomla-cms-bot - change - 14 Jul 2023
Category Libraries
avatar brianteeman brianteeman - open - 14 Jul 2023
avatar brianteeman brianteeman - change - 14 Jul 2023
Status New Pending
avatar brianteeman brianteeman - change - 14 Jul 2023
Labels Added: PR-5.0-dev
avatar HLeithner
HLeithner - comment - 14 Jul 2023

Did this error occur? Because the cachecontrollerfactory does exactly the same

avatar brianteeman
brianteeman - comment - 14 Jul 2023

It didnt produce any errors (afaict) I just observed the difference in the code. IfI understand it correctly before this PR the code was checking the old style first and falling back to the current style and this reverses that just as it was already done in many place.

avatar HLeithner HLeithner - change - 17 Jul 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-07-17 12:03:14
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 17 Jul 2023

I understand, but in this case we already checking the new one in the try-block and fall back if this fails. so trying again the new namespace variant would be reduntant, I'm closing this because this function is planned to be removed with 6.0 in which version also the old prefixed classnames go away.

thanks anyway for looking into this.

avatar HLeithner HLeithner - close - 17 Jul 2023
avatar brianteeman
brianteeman - comment - 17 Jul 2023

so trying again the new namespace variant would be reduntant

I am confused. This is changing the order so its new and then fallback to old.

Add a Comment

Login with GitHub to post a comment