From ad806535da32c317abba16d29326e65b7c10bf13 Mon Sep 17 00:00:00 2001 From: tknall Date: Thu, 12 Aug 2010 07:50:58 +0000 Subject: more logging new errorcode for invalid signature dictionary (232) detect invalid signature dictionary detect errors (invalid glyph mappings) when extracting text remove useless certificate digest calculation remove invocation of erroneous getCertDigest method webapp: hotfix for NPE adjustments for new mocca (applet) version (layout) POM: removed deprecated maven elements git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@587 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/commandline/Main.java | 1 + src/main/java/at/gv/egiz/pdfas/exceptions/ErrorCode.java | 1 + .../pdfas/impl/vfilter/helper/VerificationFilterBinaryHelper.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/gv') diff --git a/src/main/java/at/gv/egiz/pdfas/commandline/Main.java b/src/main/java/at/gv/egiz/pdfas/commandline/Main.java index 2e0e674..161dee8 100644 --- a/src/main/java/at/gv/egiz/pdfas/commandline/Main.java +++ b/src/main/java/at/gv/egiz/pdfas/commandline/Main.java @@ -547,6 +547,7 @@ public abstract class Main if (e instanceof PresentableException) { throw (PresentableException)e; } else { + logger_.error(e); throw new PresentableException(ErrorCode.UNKNOWN_ERROR, e); } } diff --git a/src/main/java/at/gv/egiz/pdfas/exceptions/ErrorCode.java b/src/main/java/at/gv/egiz/pdfas/exceptions/ErrorCode.java index 9c2e440..bf98c85 100644 --- a/src/main/java/at/gv/egiz/pdfas/exceptions/ErrorCode.java +++ b/src/main/java/at/gv/egiz/pdfas/exceptions/ErrorCode.java @@ -31,6 +31,7 @@ public final class ErrorCode public static final int SIGNATURE_TYPES_EXCEPTION = 223; public static final int FONT_NOT_FOUND = 230; public static final int DOCUMENT_IS_PROTECTED = 231; + public static final int INVALID_SIGNATURE_DICTIONARY = 232; public static final int INVALID_SIGNATURE_POSITION = 224; diff --git a/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterBinaryHelper.java b/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterBinaryHelper.java index 3ee5da0..33a5ca3 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterBinaryHelper.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/vfilter/helper/VerificationFilterBinaryHelper.java @@ -137,10 +137,12 @@ public final class VerificationFilterBinaryHelper int linesToProcess = (kz_apr.elements.size() / 2); log.trace("Lines to process for KZ: " + linesToProcess); + /* if (linesToProcess > 1) { - log.debug("HOTFIX: forcing single line to process"); + log.debug("Multiple KZHOTFIX: forcing single line to process"); linesToProcess = 1; } + */ for (int i = 0; i < linesToProcess; i++) { NumberParseResult start_npr = (NumberParseResult) kz_apr.elements.get(i * 2); -- cgit v1.2.3