I've already fallen into the trap twice now of using a checksum (sha256, sha384, sha512) for the downloadable extension file with a line break or spaces like in the file “https://update.joomla.org/core/j4/default.xml” shown here when creating the XML according to the instructions on https://manual.joomla.org/docs/building-extensions/install-update/update-server/#extension-server-type.
After all, the lower and upper case of the sha value is currently taken into account and an additional trim for the value would make it easier for a developer to make fewer mistakes when creating it.
Currently, you are not allowed to set a line break or spaces between the html directives, e.g. with <sha512> and </sha512>, otherwise the update for the extension will not shown (without any comment).
It would of course also be possible to change the instruction so that it is clear in the description that no characters other than the SHA code should be placed between the html directives. But then why is a strtolower($hashRemote)
set in the comparison of the two hashes? - In my opinion, a trim command is appropriate, as already provided in PR #44336.
What do you think, is there something against this addition?
Best regards Thomas
Presrequisites
sha512sum \<myextension\>.zip
In the backend <yourside>/administrator
, in the tab "notification": after displaying "checking extensions..." a red field "update is available (1)" is shown. And we can start an update process.
In the backend <yourside>/administrator
, in the tab "notification": a green colored "Extensions are up to date." is shown.
No update of the extension is available.
Joomla 5.2, also with Joomla 5.0 and Joomla 5.1 series.
PR #44336
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-29 15:50:25 |
Closed_By | ⇒ | alikon |
closing as we have a pr #44336