Commit Graph

6 Commits

Author SHA1 Message Date
Robert Muir 1fc89feb63 Reduce surface area of mapper attachments:
this removes a lot of obscure parsers, and leaves us with the basics.

This includes at least all of the formats listed on
https://github.com/elastic/elasticsearch-mapper-attachments/issues/163

I will start adding tests for each one of these document formats,
and take it as it goes and see what trouble we run into.

Closes #163
2015-11-07 21:00:00 -05:00
Robert Muir 6b831e1e8b be explicit about name and link to bugzilla for the POI issue 2015-11-07 18:13:05 -05:00
Robert Muir 3c40ed22b3 Fix security problems in mapper-attachments.
Many of the tests were not running, or did not check the exceptions.
I renamed all tests to meet *Tests* so they run, and assert exception messages.

Also because we must (currently) invoke tika with additional privileges, I added
the security logic, and fixed unit testing to call our static method directly.

This must be package private for security reasons, i simply put everything in
org.elasticsearch.mapper.attachments package.

I upgraded tika to the latest, so we are up to date, and removed logic around
tika == null and old locale issues.
2015-11-07 17:45:16 -05:00
Ryan Ernst 835994a582 Fix groupid and remove more legacy files 2015-11-07 01:11:23 -08:00
Ryan Ernst afe6fe8fa2 Remove outdated dep exclusion 2015-11-06 14:46:19 -08:00
Ryan Ernst 867f496ac8 Build: Switch mapper attachments to gradle
This change switches the plugin to use gradle as the build system, and
updates the master branch to track elasticsearch master.
2015-11-06 14:07:57 -08:00