Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Mar 10, 2016

This adds getClassLoader permission for ingest-attachment and mapper-attachments plugins.

I will backport the mapper attachment fix to 2.3.

closes #16864

dadoonet and others added 3 commits March 10, 2016 10:57
Add REST test for:

* `.doc`
* `.docx`

The later fails with:

```
==> Test Info: seed=DB93397128B876D4; jvm=1; suite=1
Suite: org.elasticsearch.ingest.attachment.IngestAttachmentRestIT
  2> REPRODUCE WITH: gradle :plugins:ingest-attachment:integTest -Dtests.seed=DB93397128B876D4 -Dtests.class=org.elasticsearch.ingest.attachment.IngestAttachmentRestIT -Dtests.method="test {yaml=ingest_attachment/30_files_supported/Test ingest attachment processor with .docx file}" -Des.logger.level=WARN -Dtests.security.manager=true -Dtests.locale=bg -Dtests.timezone=Europe/Athens
FAILURE 4.53s | IngestAttachmentRestIT.test {yaml=ingest_attachment/30_files_supported/Test ingest attachment processor with .docx file} <<< FAILURES!
   > Throwable #1: java.lang.AssertionError: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"parse_exception","reason":"Error parsing document in field [field1]"}],"type":"parse_exception","reason":"Error parsing document in field [field1]","caused_by":{"type":"tika_exception","reason":"Unexpected RuntimeException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@7f85baa5","caused_by":{"type":"illegal_state_exception","reason":"access denied (\"java.lang.RuntimePermission\" \"getClassLoader\")","caused_by":{"type":"access_control_exception","reason":"access denied (\"java.lang.RuntimePermission\" \"getClassLoader\")"}}}},"status":400}]
   >    at __randomizedtesting.SeedInfo.seed([DB93397128B876D4:53C706AB86441B2C]:0)
   >    at org.elasticsearch.test.rest.section.DoSection.execute(DoSection.java:107)
   >    at org.elasticsearch.test.rest.ESRestTestCase.test(ESRestTestCase.java:395)
   >    at java.lang.Thread.run(Thread.java:745)
```

Related to #16864
@dadoonet
Copy link
Contributor

I did not run it but looking at the changes it sounds good to me.

@rmuir
Copy link
Contributor

rmuir commented Mar 11, 2016

looks good to me

rjernst added a commit that referenced this pull request Mar 11, 2016
@rjernst rjernst merged commit 42a6869 into master Mar 11, 2016
@rjernst rjernst deleted the fix/16864-attachment-doctypes branch March 11, 2016 01:27
@rjernst
Copy link
Member Author

rjernst commented Mar 12, 2016

2.x: a9887e7

@clintongormley clintongormley added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP :Search Foundations/Mapping Index mappings, including merging and defining field types and removed :Plugin Ingest Attachment labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v2.3.0 v5.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not extract text from Office documents (.docx extension)

5 participants