disable securitymanager in tests, until #129 is addressed in tika

This commit is contained in:
Robert Muir 2015-05-12 07:38:55 -04:00
parent 765afb655e
commit 9298be93f6
2 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,9 @@
<properties> <properties>
<!-- If we need to define any specific property --> <!-- If we need to define any specific property -->
<!-- see https://github.com/elastic/elasticsearch-mapper-attachments/issues/129
this plugin is currently unusable unless users disable security -->
<tests.security.manager>false</tests.security.manager>
</properties> </properties>
<dependencies> <dependencies>

View File

@ -486,7 +486,7 @@ public class AttachmentMapper extends AbstractFieldMapper<Object> {
if (!ignoreErrors) { if (!ignoreErrors) {
logger.trace("exception caught", e); logger.trace("exception caught", e);
throw new MapperParsingException("Failed to extract [" + indexedChars + "] characters of text for [" + name + "] : " throw new MapperParsingException("Failed to extract [" + indexedChars + "] characters of text for [" + name + "] : "
+ e.getMessage()); + e.getMessage(), e);
} else { } else {
logger.debug("Failed to extract [{}] characters of text for [{}]: [{}]", indexedChars, name, e.getMessage()); logger.debug("Failed to extract [{}] characters of text for [{}]: [{}]", indexedChars, name, e.getMessage());
logger.trace("exception caught", e); logger.trace("exception caught", e);