https://issues.apache.org/bugzilla/show_bug.cgi?id=47251

Sam Bishop <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Sam Bishop <[email protected]> 2009-12-17 08:59:01 
UTC ---
I am seeing this same problem.  (Especially since the BOF header is exactly the
same.)  Here's a bit more detail from the sample file I will be attaching:

Record              Size  Data
------------------  ----  ----
BOF (0809h)         16    00 06 05 00 EC 15 CD 07  C1 C0 00 00 06 03 00 00 
INTERFACEEND (E2h)  2     B0 04 
MMS (C1h)           2     00 00 
INTERFACEEND (E2h)  0
...

The third-party from which we are receiving these problematic spreadsheets used
to send us similar, valid ones.  And the second record was INTERFACEHDR (E1h)
with the same data payload.

I understand that this is buggy behavior on the part of the program generating
these files, but OpenOffice and Excel both open these files without complaint,
so it seems reasonable for POI to do so as well.

What I have done for the moment is modify the hasNextRecord() method of the
RecordInputStream class, so that it simply skips extra data bytes instead of
throwing an exception.  But perhaps an experienced POI developer will have a
better idea.

Thank you!

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to