[5.3] Don't use the deprecated CMS Filesystem but the framework package in package installer#45139
Merged
laoneo merged 4 commits intojoomla:5.3-devfrom Mar 21, 2025
Conversation
Don't use the deprecated CMS Filesystem but the framework package
|
Hello Richard, I am getting: An error has occurred. --- on 5.3 ßeta 2, on PHP 8.3.19, MariaDB 10.6.15 |
Member
Author
|
You have to test the PR on a current 5.3-dev branch which includes the dependency update which was merged yesterday. |
Member
Author
|
P.S.: A nightly build from tonight should also work. See also #45071 (comment) . |
|
I have tested this item ✅ successfully on 393104c Thx @richard67! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45139. |
Member
Author
|
@exlemor Thanks for testing. |
|
Thank you @richard67 for the help along the way ;) |
Member
Author
|
Well I simply had forgotten to mention it in the testing instructions. Is meanwhile added. |
Contributor
|
I have tested this item ✅ successfully on 393104c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45139. |
Contributor
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45139. |
laoneo
approved these changes
Mar 19, 2025
Member
|
Thanks! |
4 tasks
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) changes the package installer plugin ("System" -> "Install" -> "Extensions", tab "Upload Package File") to use the filesystem package from the framework instead of the deprecated CMS filesystem package to determine the maximum file upload size from php.ini settings "post_max_size" and "upload_max_filesize".
That's one of the 2 places where we currently use the deprecated package in the 5.3-dev branch and up.
I've decided to use an alias for the helper,
use Joomla\Filesystem\Helper as FilesystemHelper, because it seems odd to me to use justHelperin the plugin code, which could readers may think that the helper belongs to that plugin.If maintainers decide this to be an enhancement or new feature which comes too late for 5.3.0 and should not be made later with 5.3 patch versions, I will rebase this PR to 5.4-dev.
Testing Instructions
This PR requires the dependency update PR which was merged yesterday. See also #45071 (comment) .
In the administrator, go to "System" -> "Install" -> "Extensions", tab "Upload Package File", and note the "Maximum upload size" shown below the "Or browse for file" button is correct.
Apply the patch and go again to "System" -> "Install" -> "Extensions", tab "Upload Package File", or reload the page if still there.
Actual result BEFORE applying this Pull Request
"Maximum upload size" is shown below the "Or browse for file" button.
Expected result AFTER applying this Pull Request
"Maximum upload size" is shown below the "Or browse for file" button. The value is the same as without the PR.
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