User tests: Successful: Unsuccessful:
Function getOldManifest searched invalid path. It relied on extension_administrator path, which is available only for components. Changed to extension_root, which is available for all extensions, and in components installer fallback to extension_administrator.
Moreover path manifest contains complete path to manifest not only filename, therefore the result path was always invalid.
Use any extension using InstallerScriptTrait with disallowed downgrades (that is by default) and try to install an old version over existing newer version.
The extension is installed anyway,
The extension is not installed, error message is displayed,
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
@richard67 This is just Joomla 6.x related, as the InstallerScriptTrait was introduced in Joomla 6.0, should be replacement for InstallerScript class.
I have tested this item ✅ successfully on 191b7a3
I have tested this item ✅ successfully on 191b7a3
I have tested this item ✅ successfully on 191b7a3
Code review only. If code review is not accepted, @n3t will need to provide sample extensions for testing (two for each type, mean many extensions)
I have tested this item ✅ successfully on 191b7a3
Code review only. If code review is not accepted, @n3t will need to provide sample extensions for testing (two for each type, mean many extensions)
I have tested this item ✅ successfully on 191b7a3
Code review only. If code review is not accepted, @n3t will need to provide sample extensions for testing (two for each type, mean many extensions)
@tecpromotion Was you test also based on code review like @joomdonation 's test? Or were you ablr to test with a real extension?
I have tested this item ✅ successfully on 191b7a3
Code review only. If code review is not accepted, @n3t will need to provide sample extensions for testing (two for each type, mean many extensions)@tecpromotion Was you test also based on code review like @joomdonation 's test? Or were you ablr to test with a real extension?
Real extensions.
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-6.1-dev
|
||
RTC
RTC
This pull request has been automatically rebased to 6.2-dev. Joomla! 6.1 is now EOL.
| Title |
|
||||||
| Labels |
Added:
RTC
PR-6.2-dev
Removed: PR-6.1-dev |
||
Tested unsuccesfully with libraries, packages and files
| Status | Ready to Commit | ⇒ | Pending |
Back to pending
Back to pending
Ok, Installer adapters for libraries, files and packages (especially for libraries) handle manifest different (hordcoded) way. There are few options how to handle this:
Last option seems the best to me, but it would mean to change bit more than this single file. Using DB query to load the manifest path from database would be more simple, but it is an extra DB query. Not sure which way to choose to comply with philosophy of the Installer, could someone review this and give advice?
| Labels |
Added:
Updates Requested
Removed: RTC |
||
@n3t Is it a bug which happens also in 5.4? Or does it only happen in 6.x? If only in 6.x, the 6.1-dev branch is ok, but if the issue also happens in 5.4, the PR should be made for the 5.4-dev branch. See also https://github.com/joomla/joomla-cms#which-branch-should-my-pull-request-target .