I've been playing with an rpc "wrapper" around ocfl-java for the purposes of cross-implementation testing, and I think I came across a bug.
Validator.validateObject() throws MissingFormatArgumentException on the E001_v2_file_in_root fixture (both 1.0 and 1.1). The format string around line 831 of Validator.java has two %s placeholders but only one argument:
results.addIssue(
ValidationCode.E001,
"Object root %s contains version %s but it is a file and must be a directory",
objectRootPath); // missing 2nd argument:
I've been playing with an rpc "wrapper" around ocfl-java for the purposes of cross-implementation testing, and I think I came across a bug.
Validator.validateObject()throwsMissingFormatArgumentExceptionon theE001_v2_file_in_rootfixture (both 1.0 and 1.1). The format string around line 831 ofValidator.javahas two%splaceholders but only one argument: