--add-prefix and --remove-prefix command line arguments to fdbrestore are not hex decoded.
This also fixes a bug in the original decode_hex_string implementation where an error condition is not correctly flagged.
I tested the implementation locally and it works as expected.
Once this PR is merged I can create a fix against main.
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
[ ] The PR has a description, explaining both the problem and the solution.
[ ] The description mentions which forms of testing were done and the testing seems reasonable.
[ ] Every function/class/actor that was touched is reasonably well documented.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
[ ] This change/bugfix is a cherry-pick from the next younger branch (younger release-branch or main if this is the youngest branch)
[ ] There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)
This is fix for https://github.com/apple/foundationdb/issues/1537.
--add-prefix
and--remove-prefix
command line arguments to fdbrestore are not hex decoded.This also fixes a bug in the original
decode_hex_string
implementation where an error condition is not correctly flagged.I tested the implementation locally and it works as expected.
Once this PR is merged I can create a fix against main.
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branch
ormain
if this is the youngest branch)