aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-12 14:11:33 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-23 11:48:11 +0200
commit4f7e4a56ec7f12117455542518648d0a7cbdf782 (patch)
treed0a10971b2739c95521088a33fdeb05708f59310 /id
parentf77f1a4ec8766550641cf6079d08c724f9cf15f5 (diff)
downloadmoa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.tar.gz
moa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.tar.bz2
moa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.zip
MYSQL driver fix, added debug output
Diffstat (limited to 'id')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/attributeproviders/SignedDocAttributeRequestProvider.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/attributeproviders/SignedDocAttributeRequestProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/attributeproviders/SignedDocAttributeRequestProvider.java
index 0de442bcf..72274bada 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/attributeproviders/SignedDocAttributeRequestProvider.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/attributeproviders/SignedDocAttributeRequestProvider.java
@@ -144,10 +144,18 @@ public class SignedDocAttributeRequestProvider extends AttributeProvider {
* .servlet.http.HttpServletRequest)
*/
public IPersonalAttributeList parse(HttpServletRequest httpReq) throws MOAIDException, UnsupportedAttributeException {
- Logger.debug("Beginning to extract OASIS-DSS response out of HTTP Request");
+ Logger.debug("Beginning to extract OASIS-DSS response out of HTTP Request2");
try {
- String signResponseString = new String(Base64.decodeBase64(httpReq.getParameter("signresponse")), "UTF8");
+ String base64 = httpReq.
+ getParameter("signresponse");
+ Logger.debug("signresponse url: " + httpReq.getRequestURI().toString());
+ Logger.debug("signresponse querystring: " + httpReq.getQueryString());
+ Logger.debug("signresponse method: " + httpReq.getMethod());
+ Logger.debug("signresponse content type: " + httpReq.getContentType());
+ Logger.debug("signresponse parameter:"+base64);
+ String signResponseString = new String(Base64.decodeBase64(base64), "UTF8");
+ Logger.debug("RECEIVED signresponse:"+signResponseString);
//create SignResponse object
Source response = new StreamSource(new java.io.StringReader(signResponseString));
SignResponse signResponse = ApiUtils.unmarshal(response, SignResponse.class);
@@ -554,7 +562,7 @@ public class SignedDocAttributeRequestProvider extends AttributeProvider {
catch (Exception e)
{
e.printStackTrace();
- throw new Exception("Error in addDocumentToDtl", e);
+ throw new Exception("Error in updateDocumentInDtl", e);
}
return success;