User tests: Successful: Unsuccessful:
Pull Request for Issue #36569.
Changes the location where the manifest script.php
file is looked for during uninstall, to the library root directory as opposed to the manifests directory
For testing purposes use the attached package, which does nothing really useful, other than proving uninstall of library packages is erroneous. It creates a text file named JPATH_LIBRARIES/lib_foo_script.txt
, containing a line for each preflight()
and postflight()
method being executed in script.php
, showing the performed installer action (install, uninstall, uograde).
Beware! If after the first test run, before applying the patch and running the second run, the text file is still there, results for the second run will be appended to the existing file!
File JPATH_LIBRARIES/lib_foo_script.txt
contains the following:
preflight: install
postflight: install
preflight: update
postflight: update
As can be seen, preflight()
and postflight()
methods are neither triggered as part of the update process nor during uninstall.
File JPATH_LIBRARIES/lib_foo_script.txt
contains the following:
preflight: install
postflight: install
preflight: uninstall
postflight: uninstall
preflight: update
postflight: update
preflight: uninstall
postflight: uninstall
As can be seen, preflight()
and postflight()
methods are triggered both as part of the update process and during uninstall.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have tested this item
I tested this patch successfully. Before the patch the uninstall routine was not triggered. After applying the patch the uninstall routine is triggered.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-21 13:00:47 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
?
?
|
Thx
And you @bembelimen :)
I have tested this item✅ successfully on 941d8e9
I tested this patch successfully. Before the patch the uninstall routine was not triggered. After applying the patch the uninstall routine is triggered.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36570.