-
Notifications
You must be signed in to change notification settings - Fork 279
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
Ensure support for uncompressed ARC files #101
Comments
I added a test for this in a local branch, and it seems to work fine out of the box. I'm not sure what the issue is. |
Was able to duplicate error using the blackbox example ARC, uncompressed, with the default WAR build. Let me see if I can write a test. |
Iterating over uncompressed arcs work. It's probably something to do with seeking. |
I have a possible fix based on a change in ResourceFactory.getResource() . Should I contribute it through the fork/branch/pull-request process ? You can reproduce the bug in a unit test like this: public void testGetResource() throws Exception { as the bug manifests itself in reading beyond the end of the arcrecord while parsing the http headers. |
Thanks, Colin! |
…ee the comment on line 174 of ResourceFactory.java.
See closed pull request #104 . |
All good by me. |
So, trying to reproduce this in webarchive-commons along, I found that uncompressed ARCs should never have worked when invoked the BUT it's symptoms are not consistent with the issue reported here. Not sure how to proceed unless we can make this bug more reproducible. |
Probably sensible to wait for the next BETA release to re-test this issue. |
Following this report on the mailing list, it seems OpenWayback does not cope with uncompressed ARC files at present.
Therefore, we need another unit test like this one (in iipc/webarchive-commons):
https://github.com/iipc/webarchive-commons/blob/master/src/test/java/org/archive/io/warc/WARCReaderFactoryTest.java
...but for ARCs.
The text was updated successfully, but these errors were encountered: