aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2018-07-23 08:42:08 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2018-07-23 08:42:08 +0200
commit55d708efe16aa409665537dfc3647e9fe4bb669e (patch)
tree96993bc6dbc8d38df33e1e1dee7575148915828c /pdf-as-web/src/main/java/at/gv/egiz/pdfas
parent9acf3c2e8aca9016daf76785747d838cdc5b0330 (diff)
downloadpdf-as-4-55d708efe16aa409665537dfc3647e9fe4bb669e.tar.gz
pdf-as-4-55d708efe16aa409665537dfc3647e9fe4bb669e.tar.bz2
pdf-as-4-55d708efe16aa409665537dfc3647e9fe4bb669e.zip
fix a small bug in session handling
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
index 4b776cb3..6eb80650 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
@@ -1141,8 +1141,7 @@ public class PdfAsHelper {
SL20Constants.SL20_PAYLOAD, SL20Constants.SL20_SIGNEDPAYLOAD,
command, signedCommand);
- //store requestId
-
+ //store requestId
request.getSession(false).setAttribute(PDF_SESSION_PREFIX + SL20Constants.SL20_REQID, reqId);
//forward SL2.0 command
@@ -1224,7 +1223,7 @@ public class PdfAsHelper {
} else {
JsonObject getCertCommand = SL20JSONBuilderUtils.createCommand(SL20Constants.SL20_COMMAND_IDENTIFIER_CREATE_SIG_CADES, createCAdESSigParams);
- sl20CreateCAdES = SL20JSONBuilderUtils.createGenericRequest(UUID.randomUUID().toString(), null, getCertCommand, null);
+ sl20CreateCAdES = SL20JSONBuilderUtils.createGenericRequest(reqId, null, getCertCommand, null);
}