light checksum for joomlaupdate#17632
light checksum for joomlaupdate#17632mbabker merged 7 commits intojoomla:3.9-devfrom alikon:patch-92
Conversation
|
@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. |
|
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. |
|
ok now #17619 support only sha256 |
|
should we consider to add sha512 "longer is better" ? |
Sounds good. ;) |
|
@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" |
|
@anibalsanchez , @NunoLopes96 |
|
@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. |
|
It is OK for me. |
|
@anibalsanchez can i alter above Comment as successfully Test? |
|
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. |
|
Test OK My notes:
These are my xmls: list_testpr17632.xml extension_testpr17632.xml |
|
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. |
|
@NunoLopes96 just a follow up from your work at Joomla GSoC 17 project https://github.com/joomla-projects/gsoc17_expand_extension_manager |
|
RTC after two successful tests. |
|
@brianteeman Please retag for v3.9.0. Darn bot! |
|
conflict solved |
...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
php bump version 3.8.0-beta4(i.e one version before)download the last joomla update package for example https://github.com/joomla/joomla-cms/releases/download/3.8.0-beta4/Joomla_3.8.0-beta4-Beta-Update_Package.zip
copy & rename accordingly on the previous
downloadurltag (for exampleJoomla_pr17632-Update_Package.zipGo to Components -> Joomla! Updates

you shoud see something like
Test case 1 - no checksum hashtag in the update server manifest
Expected result
a notice is showed
to test the next 2 cases we need to :
sha256sum Joomla_pr17632-Update_Package.zipTest case 2 - correct checksum hashtag in the update server manifest
<sha256>correcthashvalue</sha256>tag in the current update server instance something like:Expected result
a info is showed

Test case 3 - wrong checksum hashtag in the update server manifest
<sha256>wronghashvalue</sha256>tag in the current update server instanceExpected result
a warning is showed
Documentation Changes Required
new tags :
<sha256></sha256><sha384></sha384><sha512></sha512>