User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Sine 5.0.0-beta1, a few more plugins are uninstalled by the uninstallExtensions method in the script.php file:
The files and folders of these plugins shall not be in the lists of files and folders to be deleted on update by the deleteUnexistingFiles method in script.php, otherwise you will get warning alerts and PHP notices at the end of the update. See PR #41065 for details.
This PR here adds the corresponding files and folders to the lists of exceptions in the "build/deleted_file_check.php" script so they are not falsely reported as to be deleted by that tool, which is used by maintainers and release managers to check for deleted files and folders and by me to maintain the lists in script.php.
In addition, it adds the files and folders from the invisible recaptcha plugin. This one is not uninstalled on update, and its files and folders shall not be deleted, but it's also not included in new releases, so the "build/deleted_file_check.php" script currently reports them as to be deleted.
Code review, or if you want to make a real test:
It needs a current 5.0-dev branch on a git clone and PHP CLI available.
php ./build/deleted_file_check.php --from=./tmp/Joomla_5.0.0-alpha4-Alpha-Full_Package --to=./tmp/Joomla_5.0.0-beta1-Beta-Full_Package
Output of the script:
There are 32 deleted files, 22 deleted folders and 0 renamed files in comparison to "./tmp/Joomla_5.0.0-alpha4-Alpha-Full_Package"
Files "build/deleted_files.txt" and "build/deleted_folders.txt" contain files and folders from the plugins mentioned in the description of this PR. "build/deleted_folders.txt" contains only such files.
File "build/renamed_files.txt" is empty as it should be.
Output of the script:
There are 5 deleted files, 0 deleted folders and 0 renamed files in comparison to "./tmp/Joomla_5.0.0-alpha4-Alpha-Full_Package"
Files "build/deleted_files.txt" and "build/deleted_folders.txt" don't contain files and folders from the plugins mentioned in the description of this PR.
See comparison of "build/deleted_files.txt", left side with the PR applied, right side without:
File "build/deleted_folders.txt" is empty now as it should be.
File "build/renamed_files.txt" is empty as it should be.
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Category | ⇒ | Repository |
Status | New | ⇒ | Pending |
So the recaptcha stuff is clearly correct. As we're migrating the scheduled task plugin stuff over do we want to keep it? I'm concerned we're going to be double triggering events between existing system plugins and new scheduled plugins? I assumed that was why we migrated the parameters over.
@wilsonge As my description says, and PR #41065 explains more detailed, the deletedUnexistingFiles method is called before the update method in script.php is called. This would cause the uninstallation fail, which happens in the (new in J5) uninstallExtensions method. This then uninstalls the plugins, which also removes their files. So I don't understand why you ask if we want to keep the files.
See #41065:
... the "deleteUnexistingFiles" method is not only called from function "update" in script.php but also from the "finalisation.php" file of the update component.
That means the plugin's files and folders are deleted before the function to uninstall the plugin is executed.
I just didn't read carefully enough. All good!
I have tested this item ✅ successfully on 2b28535
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-16 09:28:35 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
PR-5.0-dev
|
thx
So the recaptcha stuff is clearly correct. As we're migrating the scheduled task plugin stuff over do we want to keep it? I'm concerned we're going to be double triggering events between existing system plugins and new scheduled plugins? I assumed that was why we migrated the parameters over.