diff options
3 files changed, 24 insertions, 4 deletions
| diff --git a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java b/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java index bdabc55bf..e4506e17d 100644 --- a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java +++ b/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java @@ -33,6 +33,18 @@ public class DatabaseConnectorMySQLImpl implements DatabaseConnector {  		password = _password;  		server = _server;  		database = _database; +		try { +			Class.forName("com.mysql.jdbc.Driver").newInstance(); +		} catch (InstantiationException e) { +			// TODO Auto-generated catch block +			e.printStackTrace(); +		} catch (IllegalAccessException e) { +			// TODO Auto-generated catch block +			e.printStackTrace(); +		} catch (ClassNotFoundException e) { +			// TODO Auto-generated catch block +			e.printStackTrace(); +		}   	}  	/* (non-Javadoc) diff --git a/DocumentService/src/eu/stork/documentservice/data/docservice.properties b/DocumentService/src/eu/stork/documentservice/data/docservice.properties index 1d5bf3d41..4ca12d023 100644 --- a/DocumentService/src/eu/stork/documentservice/data/docservice.properties +++ b/DocumentService/src/eu/stork/documentservice/data/docservice.properties @@ -1,5 +1,5 @@  sql.server=localhost:3306 -sql.database=storktransfer +sql.database=STORKTRANSFER  sql.user=stork  sql.password=stork 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; | 
