Summary: | Exceptions in NDocumentInputStream preventing streaming of data out of MS Publisher files | ||
---|---|---|---|
Product: | POI | Reporter: | Dmitry Goldenberg <dgoldenberg> |
Component: | HPBF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED LATER | ||
Severity: | critical | ||
Priority: | P2 | ||
Version: | 3.2-FINAL | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Smaller file to repro on |
Description
Dmitry Goldenberg
2011-06-03 17:44:01 UTC
Attachment is too big to attached even in a zip. Please let me know if you want the file. I suspect this will happen on many or most pub files. Does this happen even on small publisher files? I'm guessing it may affect anything where an entry in a POIFS is more than one big block. If you can reproduce it with one of the small sample files we already have, that'd mean we could use them and make life easy :) Created attachment 27107 [details]
Smaller file to repro on
Nick, Yes, it's reproducible on smaller files (please see attached). Thanks Can you try with svn trunk, and see if it helps? I fixed a few bits on the weekend, and I updated most of the DocumentInputStream tests to check NPOIFS too There is a mark/reset issue though, need to fix that before I can write a test for your specific case. I can certainly try. So is all this stuff going into trunk? We were actually on NIO 3.2 branch... Also would ideally like your other fix too :) Do you think you'll be looking into streaming API's for HPBF? Then perhaps we could write the chunking on top of that... The NIO 3.2 branch hasn't been worked on for quite some time, and isn't likely to receive any new work. As such, I'm closing this as "In a Later Version", sorry If you can reproduce this problem still on 3.11, please let us know. As it stands, a very similar unit test passes on trunk, and has done for some time, so I think your problem is solved! |