https://issues.apache.org/bugzilla/show_bug.cgi?id=51832
Bug #: 51832
Summary: Workbook not detected as encrypted if WRITEPROTECT
record precedes FILEPASS record
Product: POI
Version: 3.7
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27505
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27505
Proposed patch
I have about a dozen files here where WRITEPROTECT precedes FILEPASS. I can't
seem to reproduce this myself even if I turn on write protect and encryption
for the same workbook, but I am attaching a fix for the issue anyway.
I'm also worried about the general nature of the FILEPASS record - what if it
can occur literally _anywhere_? Is POI's approach of only looking a few
records deep actually correct in general?
--
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]