poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42834] - RawDataBlock makes incorrect assumption about size of data returned by IOUtils.readFully()
Date Wed, 09 Jan 2008 16:35:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42834>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42834


nick@torchbox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From nick@torchbox.com  2008-01-09 08:35 -------
I've written a test which works with a very slow inputstream. With this, I don't
have any problems reading a whole block, even if done so in lots of tiny little
bits with gaps. I've also tweaked the comments/javadocs/exception text to ensure
they're clear on exactly what will and won't work

You should only get the IOException if your stream EOFs in the middle of reading
a block, which should never be the case for a valid OLE2 document (which is
required to be a multiple of the blocksize)

So, I'm not sure what your problem is, but I think it isn't related to
IOUtils.readFully()

If you're still getting this issue after trying with a svn checkout from trunk,
could you put together a unit test that demonstrates the issue? (My slow reading
unit test couldn't trigger it, so we will need a failing unit test to be able to
replicate the issue, if it's still present)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message