Details
-
Bug
-
Resolution: Fixed
-
Major
-
0.24
-
None
Description
When specifying algorithm manually using the -R parameter and also specifying salt using the -S parameter, validation fails if the argument to -R is an odd number of characters:
[assf@int-bitmag-01 bitrepository-command-line-0.24-SNAPSHOT]$ ./getchecksums.sh -c integrationtest1 -i foo -R MD5 -S abab
Initialising arguments...
Creating client.
Performing the GetChecksums operation.
Exception in thread "main" java.lang.IllegalArgumentException: String hexString, 'MD5', must be an even number of characters.
at org.bitrepository.common.ArgumentValidator.checkTrue(ArgumentValidator.java:160)
at org.bitrepository.common.utils.Base16Utils.encodeBase16(Base16Utils.java:64)
at org.bitrepository.commandline.GetChecksums.getRequestChecksumSpec(GetChecksums.java:115)
at org.bitrepository.commandline.GetChecksums.performOperation(GetChecksums.java:94)
at org.bitrepository.commandline.GetChecksums.main(GetChecksums.java:48)
Attachments
Issue Links
- mentioned in
-
Page Loading...