User tests: Successful: Unsuccessful:
This is an enhancement of #18547 to introduce support for multiple download sources (AKA mirrors) to the update server library. See the original PR for all the basics.
I have made a couple of core tweaks to the concept to allow us to be minimally disruptive to past releases while also enable us to expand the API and be able to implement other missing features in the update system. In short:
<downloadsource>
tag to be used under the <downloads>
tag, this is different than the original PR which tweaked the update library to support multiple <downloadurl>
tags
<downloadurl>
tags which would cause more issues in serving updates, so I think a new tag is going to be the absolute safest option<downloadsource>
tag
With the patch applied, go into the update component, set the update channel to "Custom URL" and use the URL https://developer.joomla.org/test-update-server/list_sts.xml as your server. Then try to update Joomla (this will use a nightly build, so it WILL undo the changes from this patch). The update should work.
Note this server is purposefully provisioned so that it should fail on the first two download attempts, the first using the existing <downloadurl>
tag and the second the first element of the new download sources array. So a successful update purposefully only happens after a couple of failures to validate the fallback behavior works.
The update server documentation should be expanded to document the new tag/options.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_installer com_joomlaupdate Libraries |
@Septdir @effrit please mark your Test as successfully:
@franz-wohlkoenig This PR is an enhancement of my #18547 I'm not sure whether I can mark Test as successfully
P.S At night, I did't test com_installer. Now tested. Everything works as it should.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-02 17:11:25 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
The update server documentation should be expanded to document the new tag/options.
I would like to update the documentation but first want to go sure if the following example code is correct (your manifest examples above aren't available anymore). And because it uses the Joomla package. Thank you!
<updates>
<update>
<name>Joomla! 3.6</name>
<description>Joomla! 3.6 CMS</description>
<element>joomla</element>
<type>file</type>
<version>3.6.5</version>
<infourl title="Joomla!">https://www.joomla.org/announcements/release-news/5693-joomla-3-6-5-released.html</infourl>
<downloads>
<downloadurl type="full" format="zip">https://downloads.joomla.org/cms/joomla3/3-6-5/Joomla_3.6.5-Stable-Update_Package.zip</downloadurl>
<downloadsource type="full" format="zip">https://example.com/Joomla_3.6.5-Stable-Update_Package.zip</downloadsource>
<downloadsource type="full" format="zip">https://other.example.com/Joomla_3.6.5-Stable-Update_Package.zip</downloadsource>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Joomla! PLT</maintainer>
<maintainerurl>https://www.joomla.org</maintainerurl>
<section>STS</section>
<targetplatform name="joomla" version="3.[234567]" />
<php_minimum>5.3.10</php_minimum>
</update>
</updates>
Looks about right. You can find the latest version here https://github.com/joomla/update.joomla.org/blob/master/www/core/sts/extension_sts.xml#L168-L191
I tested it. Updating joomla is working.
I like this realization. @mbabker at you it was excellent it turned out to unite and to improve all offered variants of realization
P.S I'm attaching plg_system_testtalt_1.0.0.zip for testing com_installer.
Update manifest https://joomla.septdir.ru/updateserver/pluginalt.xml