You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/09/03 16:51:49 UTC
[Bug 55519] New: OOXML text extractors should open package as
read-only
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: dev@poi.apache.org
Reporter: qforce@users.sourceforge.net
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org