https://issues.apache.org/bugzilla/show_bug.cgi?id=55519
Bug ID: 55519
Summary: OOXML text extractors should open package as read-only
Product: POI
Version: 3.10-dev
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Hi,
In the method ExtractorFactory.createExtractor(File), an OPCPackage is created
with OPCPackage.open(f.toString()).
This opens the package with PackageAccess.READ_WRITE. IMHO, a text extractor
should open with PackageAccess.READ instead. Not doing so may cause POI to
modify the file when the package's close method is called for some reason, a
behavior a client would not expect from a text extractor.
Also, in my case, this issue caused my program to get stuck in an infinite
loop, as the program was constantly reindexing files which it thought were
modified.
Best regards
--
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]