Skip to content

Validator incorrectly indicates error when testing selective harvesting and a datestamp doesn't match the "reference date" #4

@zerocrates

Description

@zerocrates

The validator seems to test selective harvesting by setting both from and until to the same date and then doing a series of checks.

One of those checks is that every record returned must have a datestamp that matches the date searched for. However, if my reading of the spec is right, this isn't correct behavior:

The selective harvesting section of the spec says that repositories must include any records that were created, modified, or (optionally) deleted within from and until, inclusive. The same section defines the datestamp for a record as a date "which reflects the most recent date and time of the creation, modification, or deletion according to the rules defined above."

So, a record created on the reference date the validator requests must be included in the response, but its datestamp must also be later than that if the record was ever updated.

It seems to me the only check of this type you can validly do here is just ensuring that no datestamps earlier than the reference appear in the response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions