Closed emanzione closed 9 months ago
A common issue when using PATCH is that the target web server, sometimes, may have troubles in serving some files/mime types.
However, this issue only arises at runtime, when the Updater is actually trying to go through the update process.
To avoid this issue, a new set of commands may be introduced in the Admin CLI.
MHLab.Patch.Admin.CLI verify-build --target <version> --remote-url <remote_url> MHLab.Patch.Admin.CLI verify-patch --target <from_to> --remote-url <remote_url>
These commands will go through the target's files at the remote URL and will verify if they are all reachable and have the expected size.
We cannot verify the expected hash because it would mean downloading the whole file (which could be huge).
The commands will also output information about the files that didn't pass the verification.
Context
A common issue when using PATCH is that the target web server, sometimes, may have troubles in serving some files/mime types.
However, this issue only arises at runtime, when the Updater is actually trying to go through the update process.
Proposal
To avoid this issue, a new set of commands may be introduced in the Admin CLI.
These commands will go through the target's files at the remote URL and will verify if they are all reachable and have the expected size.
We cannot verify the expected hash because it would mean downloading the whole file (which could be huge).
The commands will also output information about the files that didn't pass the verification.