? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
9 Dec 2018

Summary of Changes

Trim extra spaces from download URL as we do in other places in the installer already as it should be consisted. I have extended this PR to the new downloadsource tag too.

cc @astridx

Testing Instructions

Install this component: https://github.com/astridx/mod_agiframewrapper/releases/tag/v0.0.2
See it finds the update to 0.0.3
Notice that when you try to install it it gets an error (can't download the package)
apply the patch
try to apply the update again

Expected result

Update works

Actual result

Update errors with "Can't download package"

Documentation Changes Required

None.

More Information

The reason for that extra spaces is that here: https://github.com/astridx/mod_agiframewrapper/blob/v0.0.3/agiframewrapper-update.xml#L57-L63 there is a return an this gets into the variable.

avatar zero-24 zero-24 - open - 9 Dec 2018
avatar zero-24 zero-24 - change - 9 Dec 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Dec 2018
Category Administration com_installer com_joomlaupdate
avatar zero-24 zero-24 - change - 9 Dec 2018
The description was changed
avatar zero-24 zero-24 - edited - 9 Dec 2018
avatar astridx
astridx - comment - 9 Dec 2018

I tested this successful. Thank you very much @zero-24
erweiterungen aktualisieren test administration 1

avatar astridx
astridx - comment - 9 Dec 2018

I have tested this item successfully on 0dced2c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23248.

avatar astridx astridx - test_item - 9 Dec 2018 - Tested successfully
avatar astridx astridx - test_item - 9 Dec 2018 - Tested successfully
avatar astridx astridx - test_item - 9 Dec 2018 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 9 Dec 2018

Wouldn't it be better to fix the XML file instead?

avatar astridx
astridx - comment - 9 Dec 2018

@SharkyKZ
You are right, one solution is to change the XML-Document.
But: White space characters and line breaks are permitted in XML content (https://www.w3.org/TR/xml/#charsets). So the XML-Document is valid.

And others had my problem, too. For example here: https://www.kunena.org/forum/k-3-0-installation-and-upgrade/132397-illegal-characters-found-in-url

If you insert an url with containing white space in the address field of a browser, the browser trims it, too.
Why should not we do this in Joomla Updater?

avatar SharkyKZ
SharkyKZ - comment - 9 Dec 2018

The part about XML validity is irrelevant. The content contains characters it should not contain. 3rd parties should fix their manifests.

If this is "fixed" in core, the same needs to be done literally where XML forms are used. All because of some 3rd parties who intentionally add garbage characters to their forms.

avatar 810
810 - comment - 9 Dec 2018

I have tested this item successfully on 0dced2c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23248.

avatar 810 810 - test_item - 9 Dec 2018 - Tested successfully
avatar 810
810 - comment - 10 Dec 2018

rtc

avatar Quy Quy - change - 16 Dec 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 16 Dec 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23248.

avatar mbabker mbabker - change - 18 Dec 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-12-18 02:42:11
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 18 Dec 2018
avatar mbabker mbabker - merge - 18 Dec 2018

Add a Comment

Login with GitHub to post a comment