-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
[ticket/15851] Automatic update downloader #6544
base: master
Are you sure you want to change the base?
Conversation
PHPBB3-15851
use phpbb\filesystem\exception\filesystem_exception; | ||
use phpbb\filesystem\filesystem_interface; | ||
use SodiumException; | ||
use ZipArchive; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer should include php-zip as requirement
There is a functions_compress.php
in includes folder too that can be used if the server don't have zip installed (or just dont allow updates)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i doubt that would actually work if this is not working.
* | ||
* @return bool Whether the signature is correct or not. | ||
*/ | ||
public function validate(string $file_path, string $signature_path): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please return the reason why the signature is not valid so it's possible to solve the error without having to add debug statements everywhere.
(Download doesn't exist, signature doesn't exist, unable to decode base64, what SodiumException occurred)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that doesn't really make any sense to me, we only care if the signature is valid or not. Further more, how this is used, it is impossible to not have the file.
PHPBB3-15851
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB3-15851