? ? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
20 Aug 2017

...from #17619 (comment)
add light checksum for joomla update

Summary of Changes

trigger the checksum check on update
if the update server manifest have an hash tag

Testing Instructions

  • start with latest staging (for time of writing) version 3.8.0-beta5
  • apply pr #17619
  • in order to simulate a joomlaupdate
    • runphp bump version 3.8.0-beta4 (i.e one version before)
  • set Update channel to custom URL for example (http://localhost/test/list_testpr17632.xml)
  • create that file with something like this content
<extensionset name="Joomla Core Test Updateserver" description="The Joomla Core Update Server for Tests of Alpha, Beta and RC Releases">
 <extension name="Joomla" element="joomla" type="file" version="3.8.0-beta4" targetplatformversion="3.8" detailsurl="http://localhost/test/extension_testpr17632.xml" />
</extensionset>
<?xml version="1.0" ?>
<updates>
	<update>
		<name>Joomla! 3.8</name>
		<description>Joomla! 3.8 CMS</description>
		<element>joomla</element>
		<type>file</type>
		<version>3.8.0-beta4</version>
		<infourl title="Joomla!">https://www.joomla.org</infourl>
		<downloads>
			<downloadurl type="full" format="zip">http://localhost/test/Joomla_pr17632-Update_Package.zip</downloadurl>
		</downloads>
		<tags>
			<tag>stable</tag>
		</tags>
		<maintainer>Joomla! PLT</maintainer>
		<maintainerurl>https://www.joomla.org</maintainerurl>
		<targetplatform name="joomla" version="3.[3456789]"/>
		<php_minimum>5.3.10</php_minimum>
	</update>
</updates>

Test case 1 - no checksum hashtag in the update server manifest

Expected result

a notice is showed

screenshot from 2017-09-02 09-08-18

to test the next 2 cases we need to :

  • calculate the hash value (for example sha256)
  • -(on linux) run sha256sum Joomla_pr17632-Update_Package.zip
    screenshot from 2017-09-02 09-27-09

Test case 2 - correct checksum hashtag in the update server manifest

  • add a <sha256>correcthashvalue</sha256> tag in the current update server instance something like:

screenshot from 2017-09-02 09-30-38

Expected result

a info is showed
screenshot from 2017-09-02 09-37-45

Test case 3 - wrong checksum hashtag in the update server manifest

  • add a <sha256>wronghashvalue</sha256> tag in the current update server instance

Expected result

a warning is showed

screenshot from 2017-09-02 09-40-32

Documentation Changes Required

new tags :

  • <sha256></sha256>
  • <sha384></sha384>
  • <sha512></sha512>
1d22ddf 20 Aug 2017 avatar alikon model
f61f6ab 20 Aug 2017 avatar alikon lang
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2017
Category Administration com_joomlaupdate Language & Strings
avatar alikon alikon - open - 20 Aug 2017
avatar alikon alikon - change - 20 Aug 2017
Status New Pending
avatar zero-24
zero-24 - comment - 20 Aug 2017

@mbabker can we have your final words on the algos as SHA1 and MD5 are very well known to be weak. Expecial as the core should provide a more secure algo.

avatar mbabker
mbabker - comment - 20 Aug 2017

Personally I'd rather not support SHA1 and MD5 since they are weak. If SHA256 doesn't have the same weaknesses then that'd be fine.

avatar alikon
alikon - comment - 21 Aug 2017

ok now #17619 support only sha256

avatar alikon alikon - change - 21 Aug 2017
The description was changed
avatar alikon alikon - edited - 21 Aug 2017
avatar alikon
alikon - comment - 21 Aug 2017

should we consider to add sha512 "longer is better" ?

avatar zero-24
zero-24 - comment - 21 Aug 2017

should we consider to add sha512 "longer is better" ?

Sounds good. ;)

avatar anibalsanchez
anibalsanchez - comment - 30 Aug 2017

@alikon detailed the steps to create list.xml and extension_sts.xml.... so I guess he was thinking to enter the Url on the "Custom URL" field.

In "Joomla Update", you have "Options", where you can play with "Update Channel"
For testing, you can change it to a "Custom URL".

avatar alikon alikon - change - 2 Sep 2017
The description was changed
avatar alikon alikon - edited - 2 Sep 2017
avatar alikon alikon - change - 2 Sep 2017
The description was changed
avatar alikon alikon - edited - 2 Sep 2017
avatar alikon
alikon - comment - 2 Sep 2017

@anibalsanchez , @NunoLopes96
added more clear test info ;)

avatar alikon alikon - change - 2 Sep 2017
The description was changed
avatar alikon alikon - edited - 2 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Nov 2017

@anibalsanchez , @NunoLopes96 are Test Info @alikon suggested unclear?


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

avatar anibalsanchez
anibalsanchez - comment - 1 Nov 2017

It is OK for me.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Nov 2017

@anibalsanchez can i alter above Comment as successfully Test?

avatar anibalsanchez anibalsanchez - test_item - 3 Nov 2017 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 3 Nov 2017

I have tested this item successfully on f61f6ab


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

avatar anibalsanchez
anibalsanchez - comment - 3 Nov 2017

Test OK

My notes:

  • Apply PR #17619 AND PR #17632
  • I tested updating from 3.8.0 to 3.8.1
  • After every test, Joomla is updated... so the patches have to be re-applied for the next test

These are my xmls:

list_testpr17632.xml

<extensionset name="Joomla Core Test Updateserver" description="The Joomla Core Update Server for Tests of Alpha, Beta and RC Releases">
 <extension name="Joomla" element="joomla" type="file" version="3.8.1" targetplatformversion="3.8" detailsurl="http://local-server.extly.com/j38/extension_testpr17632.xml" />
</extensionset>

extension_testpr17632.xml

<?xml version="1.0" ?>
<updates>
	<update>
		<name>Joomla! 3.8</name>
		<description>Joomla! 3.8 CMS</description>
		<element>joomla</element>
		<type>file</type>
		<version>3.8.1</version>
		<infourl title="Joomla!">https://www.joomla.org</infourl>
		<downloads>
			<downloadurl type="full" format="zip">http://local-server.extly.com/j38/Joomla_pr17632-Update_Package.zip</downloadurl>
		</downloads>
		<tags>
			<tag>stable</tag>
		</tags>
		<sha256>e8339bed3cbba5eebb7d355e026d29594ec164420beebe97839b0019b630ed96</sha256>
		<maintainer>Joomla! PLT</maintainer>
		<maintainerurl>https://www.joomla.org</maintainerurl>
		<targetplatform name="joomla" version="3.[3456789]"/>
		<php_minimum>5.3.10</php_minimum>
	</update>
</updates>
avatar NunoLopes96 NunoLopes96 - test_item - 10 Nov 2017 - Tested successfully
avatar NunoLopes96
NunoLopes96 - comment - 10 Nov 2017

I have tested this item successfully on f61f6ab

Great Work !!


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

n3
n1
n2

avatar alikon
alikon - comment - 10 Nov 2017

@NunoLopes96 just a follow up from your work at Joomla GSoC 17 project https://github.com/joomla-projects/gsoc17_expand_extension_manager

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Nov 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Nov 2017

RTC after two successful tests.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Dec 2017
Title
[3.8] - light checksum for joomlaupdate
light checksum for joomlaupdate
avatar joomla-cms-bot joomla-cms-bot - edited - 22 Dec 2017
avatar Quy
Quy - comment - 15 Feb 2018

@brianteeman Please retag for v3.9.0. Darn bot!

avatar alikon alikon - change - 12 Mar 2018
Labels Added: ? ? ?
avatar alikon
alikon - comment - 12 Mar 2018

conflict solved

avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2018
Category Administration com_joomlaupdate Language & Strings Administration com_admin com_joomlaupdate Language & Strings Installation
avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:51:35
Closed_By mbabker
Labels Added: ?
Removed: ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018

Add a Comment

Login with GitHub to post a comment