aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java9
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java6
2 files changed, 10 insertions, 5 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
index c53b0c4d..590e93a1 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
@@ -65,11 +65,14 @@ public class VerifyResultHTMLEncoder implements VerifyResultEncoder {
sb.append("<td>-</td>");
}
if(result.isQualifiedCertificate()) {
- sb.append("<td><a href=\"signCert?SIGID=" + i + "\">here</a> (QC)</td>");
+ sb.append("<td><a href=\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a> (QC)</td>");
} else {
- sb.append("<td><a href=\"signCert?SIGID=" + i + "\">here</a></td>");
+ sb.append("<td><a href=\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a></td>");
}
- sb.append("<td><a href=\"signData?SIGID=" + i + "\">here</a></td>");
+ sb.append("<td><a href=\"signData;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a></td>");
} else {
sb.append("<td>NO</td>");
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
index 18da6b3e..43ad3581 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
@@ -58,8 +58,10 @@ public class VerifyResultJSONEncoder implements VerifyResultEncoder {
+ "\"");
}
sb.append(", ");
- sb.append("\"certificate\":\"signCert?SIGID=" + i + "\", ");
- sb.append("\"signedData\":\"signData?SIGID=" + i + "\"");
+ sb.append("\"certificate\":\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\", ");
+ sb.append("\"signedData\":\"signData;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\"");
} else {
sb.append("\"processed\":\"" + result.isVerificationDone()
+ "\"");