User tests: Successful: Unsuccessful:
Pull Request for Issue #42993 .
This pull request (PR) fixes the new version check which was added with PR #42799 so it works with version strings which contain a "+" character. Currently these characters are stripped off by the $this->input->get
call because that uses the "cmd" filter by default, so the check fails. Using the "string"filter fixes this issue.
This fixes Live Update currently not working for custom update URLs created by Drone for pull requests.
In addition, a default value \JVERSION
is added to the same $this->input->get
call so that the "Reinstall Joomla! core files" button works.
Otherwise, when using null
or ''
, you can update to the patched package of a PR but then the "Reinstall Joomla! core files" button fails with the same error message as mentioned for the first issue, and debug shows that the input is not set so the default is used.
On a current 5.1-dev branch or a 5.1.0.-beta1 or a current 5.1 nightly build, change the update channel in the Joomla Update component's options to "Custom URL" and enter the custom update URL created by drone for some current 5.1-dev PR. E.g. for PR #42992 use https://artifacts.joomla.org/drone/joomla/joomla-cms/5.1-dev/42992/downloads/74472/pr_list.xml .
Result: An update to the patched package for that PR is found.
Try to update.
Result: See section "Actual result BEFORE applying this Pull Request" below.
Apply the change of this PR.
Reload the page and then try to update.
Result: The update succeeds. See section "Expected result AFTER applying this Pull Request" below.
Search again for updates or reload the page.
Result: You are up to date, and the "Reinstall Joomla! core files" button is shown at the bottom.
Use the "Reinstall Joomla! core files" button.
Result: It works. See section "Expected result AFTER applying this Pull Request" below.
The update is not started. A red error message shows a version mismatch:
The error message comes from a new version check implemented with PR #42799 here: https://github.com/joomla/joomla-cms/blob/5.1-dev/administrator/components/com_joomlaupdate/src/Controller/UpdateController.php#L65-L77
When adding some debug code at that place you can see that $result['version']
is 5.1.0-beta2-dev+pr.42992
and $this->input->get('targetVersion')
is 5.1.0-beta2-devpr.42992
, so the latter is missing the +
between the dev
and the pr
.
Update is started and succeeds.
After that, the "Reinstall Joomla! core files" works, too.
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_joomlaupdate |
Labels |
Added:
bug
PR-5.1-dev
|
Title |
|
Title |
|
I have tested this item ✅ successfully on a1cf308
Works as described!
I have tested this item ✅ successfully on a1cf308
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
Release Blocker
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-11 18:26:47 |
Closed_By | ⇒ | LadySolveig |
Thank you @richard67 ??
I have tested this item ✅ successfully on a1cf308
Works as described!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42994.