bug PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
15 Mar 2023

Summary of Changes

In the process of deprecating the CMS Filesystem package (see #40111), this PR changes all usages of Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path. These 2 classes are almost completely identical, except for one case: Path::clean() in the CMS class uses UnexpectedValueException when the input is not a string, while the Filesystem Path class uses InvalidArgumentException. All other cases where an exception is thrown, the exception in the framework class inherits from the generic Exception which we use in the CMS class. So this is 100% compatible.

While this PR migrates away from the CMS class, #40104 removes most of the old code.

Testing Instructions

Codereview

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2023
Category Administration com_admin com_categories com_config com_content com_contenthistory com_fields com_installer com_languages com_menus com_modules com_plugins com_templates com_users
avatar Hackwar Hackwar - open - 15 Mar 2023
avatar Hackwar Hackwar - change - 15 Mar 2023
Status New Pending
avatar Hackwar Hackwar - change - 19 Mar 2023
Labels Added: PR-4.4-dev
avatar Hackwar Hackwar - change - 3 Apr 2023
The description was changed
avatar Hackwar Hackwar - edited - 3 Apr 2023
avatar laoneo
laoneo - comment - 6 Apr 2023

I reviewed some of the files and only functions are used which are basically the same like clean, isOwner or setPermissions.

avatar Hackwar Hackwar - change - 18 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-18 12:06:44
Closed_By Hackwar
Labels Added: bug
avatar Hackwar Hackwar - close - 18 Apr 2023
avatar Hackwar Hackwar - change - 18 Apr 2023
Status Closed New
Closed_Date 2023-04-18 12:06:44
Closed_By Hackwar
avatar Hackwar Hackwar - change - 18 Apr 2023
Status New Pending
avatar Hackwar Hackwar - reopen - 18 Apr 2023
avatar Hackwar Hackwar - change - 18 Apr 2023
Title
[4.4] Migrating from Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path
[5.0] Migrating from Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path
avatar Hackwar Hackwar - edited - 18 Apr 2023
avatar Hackwar Hackwar - change - 1 Jul 2023
Labels Added: PR-5.0-dev
Removed: PR-4.4-dev
avatar HLeithner
HLeithner - comment - 3 Jul 2023

can you resolve the conflict please, then I can merge this

avatar Hackwar
Hackwar - comment - 3 Jul 2023

done

avatar HLeithner HLeithner - close - 3 Jul 2023
avatar HLeithner HLeithner - merge - 3 Jul 2023
avatar HLeithner HLeithner - change - 3 Jul 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-07-03 11:06:39
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 3 Jul 2023

I did a full review on all usages and it looks ok, thanks

Add a Comment

Login with GitHub to post a comment