New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple downloadurl tags in update stream #18553
Conversation
Support for multiple downloadurl tags in update stream
Whats the difference in this pr to the functionality of #18547? |
@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. |
Sorry, it's my fault: URLs were invalid. |
@n-robert no errors but
In extensions update:
|
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 |
Support for multiple downloadurl tags in update stream
Pull Request for Issue #18543.
Summary of Changes
Implements multiple downloadurl tags support for the element in the update server definition without coming up with a new name for each tag.
Testing Instructions
For testing purposes only!
Expected result
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.
Documentation Changes Required
Attention: all downloadurls in this XML are fake! Feel free to add your own or you'll get warnings like "We can't find a download URL" or "Invalid extension update".
The update server definition should look like this: