[6.0] Remove fixFilesystemPermissions method from script.php#44513
Merged
Bodge-IT merged 2 commits intojoomla:6.0-devfrom Nov 28, 2024
Merged
Conversation
|
I have tested this item ✅ successfully on e8fb75a
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44513. |
Contributor
|
I have tested this item ✅ successfully on e8fb75a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44513. |
Contributor
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44513. |
Contributor
|
Thank you @richard67 and for the testers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Summary of Changes
This pull request (PR) removes the "fixFilesystemPermissions" method and its usage from file
administrator/components/com_admin/script.php.The method was added with PR #44379 to fix broken file and folder permissions when updating from Joomla 5.2.0 or 5.2.1 to a later 5.x version and was immediately deprecated for removal in 6.0, see the
@todocomments for the removed code.If you check the code of that method you will see that it only does something when updating from 5.2.0 or 5.2.1 to a later version. But updating to 6.0 will require to be on the latest 5.x, which currently is 5.3 and later will be 5.4, so when updating to 6 that method will never run and so it is useless in the 6.0-dev branch.
That's why it was marked to be removed in 6.0.
Testing Instructions
Code review, or if you want to do a real test:
Update a recent 5.3-dev nightly build to the latest 6.0-dev nightly build to get the actual result, and update a recent 5.3-dev nightly build to the patched package created by Drone for this PR to get the expected result.
The latest 5.3-dev nightly build can be found here: https://developer.joomla.org/nightlies/Joomla_5.3.0-alpha1-dev-Development-Full_Package.zip
The latest 6.0-dev nightly build update package can be found here: https://developer.joomla.org/nightlies/Joomla_6.0.0-alpha1-dev-Development-Update_Package.zip
The patched package created by Drone can be found here: https://artifacts.joomla.org/drone/joomla/joomla-cms/6.0-dev/44513/downloads/80514/Joomla_6.0.0-alpha1-dev+pr.44513-Development-Update_Package.zip
Actual result BEFORE applying this Pull Request
The update succeeds. The "fixFilesystemPermissions" method and a call to that function is still present in file
administrator/components/com_admin/script.php.Expected result AFTER applying this Pull Request
The update succeeds. The "fixFilesystemPermissions" method and the call to that function are not present in file
administrator/components/com_admin/script.php.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