From 38c6ea7e6014f800a87c72f7bf830a7b4397cbf3 Mon Sep 17 00:00:00 2001 From: bschnalzer Date: Mon, 6 Nov 2017 15:11:50 +0100 Subject: Updated PDFA Preflight Parser and Validation, placeholder issues, PDF-AS-WEB issues --- .../main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java | 7 ++++++- .../java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'pdf-as-web/src/main/java/at/gv/egiz') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java index b986d175..4ec8021d 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java @@ -363,7 +363,12 @@ public class ExternSignServlet extends HttpServlet { throw new PdfAsWebException("Invalid connector mobilebku is not supported"); } } - + if(connector.equals("onlinebku")) { + if(WebConfiguration.getOnlineBKUURL() == null) { + throw new PdfAsWebException("Invalid connector bku is not supported"); + } + } + PdfAsHelper.setStatisticEvent(request, response, statisticEvent); PdfAsHelper.startSignature(request, response, getServletContext(), pdfData, connector, diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java index 89cb3039..e8ac3658 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java @@ -142,14 +142,14 @@ public class UIEntryPointServlet extends HttpServlet { } if (connector.equals(Connector.ONLINEBKU)) { - if (WebConfiguration.getLocalBKUURL() == null) { + if (WebConfiguration.getOnlineBKUURL() == null) { throw new PdfAsWebException( "Invalid connector onlinebku is not supported"); } } if (connector.equals(Connector.MOBILEBKU)) { - if (WebConfiguration.getLocalBKUURL() == null) { + if (WebConfiguration.getHandyBKUURL() == null) { throw new PdfAsWebException( "Invalid connector mobilebku is not supported"); } -- cgit v1.2.3