You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2017/05/01 19:13:09 UTC
[tika] 01/02: TIKA-2350 -- catch malformed open actions.
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 5df8780e938754f28d3e1280883993c6f234df74
Author: tballison <ta...@mitre.org>
AuthorDate: Mon May 1 15:09:20 2017 -0400
TIKA-2350 -- catch malformed open actions.
---
.../main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tika-parsers/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java b/tika-parsers/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java
index 34cbc42..3147656 100644
--- a/tika-parsers/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java
+++ b/tika-parsers/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java
@@ -457,7 +457,12 @@ class AbstractPDF2XHTML extends PDFTextStripper {
protected void startDocument(PDDocument pdf) throws IOException {
try {
xhtml.startDocument();
- handleDestinationOrAction(pdf.getDocumentCatalog().getOpenAction(), ActionTrigger.DOCUMENT_OPEN);
+ try {
+ handleDestinationOrAction(pdf.getDocumentCatalog().getOpenAction(), ActionTrigger.DOCUMENT_OPEN);
+ } catch (IOException e) {
+ //See PDFBOX-3773
+ //swallow -- no need to report this
+ }
} catch (TikaException|SAXException e) {
throw new IOExceptionWithCause("Unable to start a document", e);
}
--
To stop receiving notification emails like this one, please contact
"commits@tika.apache.org" <co...@tika.apache.org>.