Skip to content

Injection of spaces at start of lines in bagit-info.txt violates spec #38

@gordonleacock

Description

@gordonleacock

The bagit spec at https://tools.ietf.org/html/draft-kunze-bagit-17#section-2.2.2 says
"The label MUST NOT contain colon (:), line feeds (LF) or carriage
returns (CR). The label MAY contain linear whitespace characters,
but MUST NOT start or end with whitespace.
It is RECOMMENDED that lines not exceed 79 characters in length.
Long values MAY be continued onto the next line by inserting a line
feed (LF), a carriage return (CR), or carriage return plus line feed
(CRLF) and indenting the next line with one or more linear white
space (spaces or tabs). Except for linebreaks such padding does not
form part of the value."

This gem however add two space at the start of the label when the line exceed 79 characters in length. The result is that spec-compliant sites like APTrust.org toss any such lines when ingesting the bag.

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