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

Use trimmed filename so readers can infer format. #302

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

anjackson
Copy link
Member

The current ResourceFactory implementation takes care to remove any .open extension, so that 'mid-write' WARCs can be used. However, when attempting to parse it uses the original filename, which means the readers cannot infer the format correctly from the extension.

This patch just switched to using the filename without '.open' on the end, and so allows the readers to cope with both compressed and uncompressed archive files.

@anjackson anjackson added the bug label Dec 2, 2015
@kris-sigur kris-sigur added this to the 2.3.0 Minor Release milestone Dec 3, 2015
johnerikhalse added a commit that referenced this pull request Dec 9, 2015
Use trimmed filename so readers can infer format.
@johnerikhalse johnerikhalse merged commit 023a597 into iipc:master Dec 9, 2015
johnerikhalse added a commit that referenced this pull request Dec 9, 2015
@anjackson
Copy link
Member Author

Thanks, and apologies for forgetting the release note.

@anjackson anjackson deleted the use-correct-archive-filename branch December 9, 2015 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants