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

Filenames with spaces at the cause bag incompleteness errors. #143

Open
nkrabben opened this issue Feb 11, 2020 · 3 comments
Open

Filenames with spaces at the cause bag incompleteness errors. #143

nkrabben opened this issue Feb 11, 2020 · 3 comments

Comments

@nkrabben
Copy link
Contributor

Because bagit-python removes blank characters at the end of each manifest line, the in-memory representation of a filename like "path_with_space_at_the_end.txt " is "path_with_space_at_the_end.txt" which causes a completeness fail.

line = line.strip()

I think the likely reason is that L699 is being used to remove the new line characters, but is overly aggressive. I can write a test for this but want some feedback about potential solutions before trying to code that up.

@kieranjol
Copy link
Contributor

kieranjol commented Feb 11, 2020 via email

@kieranjol
Copy link
Contributor

kieranjol commented Feb 11, 2020 via email

@acdha
Copy link
Member

acdha commented Feb 11, 2020

Doesn’t the RFC say one or more spaces as a separator? If I remember correctly - on phone, sorry - that would require using the URL encoded form.

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

3 participants