aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremusic <emina.music@egiz.gv.at>2020-03-12 10:35:44 +0100
committeremusic <emina.music@egiz.gv.at>2020-03-12 10:35:44 +0100
commit3257edead4eef7dd8a946ec0cdec46b7533706a5 (patch)
tree52815844842ada8639753e32affc45fab19a505d
parentd2b651845d551aa16b15d3853972e2d513a564bd (diff)
downloadpdf-as-4-3257edead4eef7dd8a946ec0cdec46b7533706a5.tar.gz
pdf-as-4-3257edead4eef7dd8a946ec0cdec46b7533706a5.tar.bz2
pdf-as-4-3257edead4eef7dd8a946ec0cdec46b7533706a5.zip
exception handling when placeholder_web_id is not used
-rw-r--r--pdf-as-lib/src/main/resources/config/config.zipbin1276718 -> 1276622 bytes
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java10
2 files changed, 8 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/resources/config/config.zip b/pdf-as-lib/src/main/resources/config/config.zip
index 55884cb7..24a534e8 100644
--- a/pdf-as-lib/src/main/resources/config/config.zip
+++ b/pdf-as-lib/src/main/resources/config/config.zip
Binary files differ
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 d1345eef..9ebd5382 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
@@ -341,8 +341,14 @@ public class ExternSignServlet extends HttpServlet {
//read and set placholder web id
- String placeholder_id = PdfAsParameterExtractor.getPlaceholderId(request);
- PlaceholderWebConfiguration.setValue(IConfigurationConstants.PLACEHOLDER_WEB_ID, placeholder_id);
+ try{
+ String placeholder_id = PdfAsParameterExtractor.getPlaceholderId(request);
+ if(!placeholder_id.equalsIgnoreCase(""))
+ PlaceholderWebConfiguration.setValue(IConfigurationConstants.PLACEHOLDER_WEB_ID, placeholder_id);
+ } catch(Exception e) {
+ logger.error(e.getLocalizedMessage());
+ }
+
String filename = PdfAsParameterExtractor.getFilename(request);
if(filename != null) {