User tests: Successful: Unsuccessful:
Support for multiple downloadurl tags in update stream
Pull Request for Issue #18543.
Implements multiple downloadurl tags support for the element in the update server definition without coming up with a new name for each tag.
Joomla\CMS\Updater\Update searches for an actual download URL and passes it to com_joomlaupdate. If such server is not found, the first URL in the list will be passed.
The update server definition should look like this:
<?xml version="1.0" ?>
<updates>
<update>
<name>Joomla! 3.8</name>
<description>Joomla! CMS</description>
<element>joomla</element>
<type>file</type>
<version>3.8.3</version>
<infourl title="Joomla!">https://www.joomla.org/announcements/release-news/5716-joomla-3-8-2-release.html</infourl>
<downloads>
<downloadurl type="full" format="zip">
https://downloads.joomla.org/cms/joomla3/3-8-3/Joomla_3.8.3-Stable-Update_Package.zip
</downloadurl>
<downloadurl type="full1" format="zip">
https://downloads.joomla.org/cms/joomla3/3-8-3/Joomla_3.8.3-Stable-Update_Package1.zip
</downloadurl>
<downloadurl type="full2" format="zip">
https://downloads.joomla.org/cms/joomla3/3-8-3/Joomla_3.8.3-Stable-Update_Package2.zip
</downloadurl>
<downloadurl type="full3" format="zip">
https://downloads.joomla.org/cms/joomla3/3-8-3/Joomla_3.8.3-Stable-Update_Package3.zip
</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Joomla! PLT</maintainer>
<maintainerurl>https://www.joomla.org</maintainerurl>
<section>STS</section>
<targetplatform name="joomla" version="3.[78]"/>
<php_minimum>5.3.10</php_minimum>
</update>
<updates>
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
@laoneo Difference in implementation. In #18547 I add to the mirror to update object (mirror0 mirror1 etc) without affecting downloadurl, and I use only in that case there was no way to download the file from the first downloadurl. In this case, @n-robert tries to initially create an array of downloadurl.
But this PR (#18553) gives me an error.
Labels |
Added:
?
|
Sorry, it's my fault: URLs were invalid.
Yes, I know. I've got no ability to create a mirror server. The update server definition is just an example. Feel free to add your own into <downloadurl>
tag.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-02 19:11:19 |
Closed_By | ⇒ | mbabker |
Don't work You tried to test if the first server is unavailable
Server
And if default joomla update server