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.
@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 .