Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gordonleacock opened this issue Apr 26, 2019 · 0 comments

Comments

@gordonleacock
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant