Elasticsearch version (bin/elasticsearch --version): 7.10.2
Plugins installed: [ingest-attachment]
JVM version (java -version): bundled
OS version (uname -a if on a Unix-like system): Windows 10
Description of the problem including expected versus actual behavior: Indexing attachment via ingest attachment plugin shutdowns elasticsearch. Expected behaviour: returns error for broken or unparsable file.
Steps to reproduce:
setup elasticsearch and ingest-attachment plugin
try to index provided file from archive using ingest-attachment plugin
elasticsearch is down
Provide logs (if relevant):
fatal error in thread [elasticsearch[pc_name][write][T#2]], exiting
java.lang.StackOverflowError
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:207)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:220)
It seems that this bug is on Apache POI side but it also heavily affects elasticsearch users so I decided to submit issue here as well.
Elasticsearch version (
bin/elasticsearch --version
): 7.10.2Plugins installed: [ingest-attachment]
JVM version (
java -version
): bundledOS version (
uname -a
if on a Unix-like system): Windows 10Description of the problem including expected versus actual behavior: Indexing attachment via ingest attachment plugin shutdowns elasticsearch. Expected behaviour: returns error for broken or unparsable file.
Steps to reproduce:
Provide logs (if relevant):
It seems that this bug is on Apache POI side but it also heavily affects elasticsearch users so I decided to submit issue here as well.
file.zip