Skip to content

Validator crashes with MissingFormatArgumentException on E001_v2_file_in_root fixture #135

@srerickson

Description

@srerickson

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: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions