From 861c81934a6596f6ec001248fc8f16476b816d2f Mon Sep 17 00:00:00 2001 From: troessler Date: Wed, 2 Apr 2008 09:23:35 +0000 Subject: Bug Fix: "XmlRequest" -> "XMLRequest" git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@255 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java | 3 ++- .../knowcenter/wag/egov/egiz/sig/connectors/bku/BKUPostConnection.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java index cd67c95..3437a6e 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java @@ -818,12 +818,13 @@ public class SignatureObject implements Serializable { final String msg = "The BKU environment " + productName + " is not trustDeskbasic and therefore the productVersion cannot be decided."; logger_.error(msg); + // uncomment the following line in order to check new bkus throw new SignatureException(0, msg); } String productVersion = response_properties.getProperty("productVersion"); logger_.debug("productVersion = " + productVersion); - boolean new_etsi = decideNewEtsiByBKUVersion(productVersion); + boolean new_etsi = decideNewEtsiByBKUVersion(productVersion); logger_.debug("verwende neue etsi properties = " + new_etsi); String etsi_prefix = ""; diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUPostConnection.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUPostConnection.java index 02013a5..1a720d8 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUPostConnection.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUPostConnection.java @@ -60,7 +60,7 @@ public final class BKUPostConnection { log.debug("doPostRequestMultipart:"); //$NON-NLS-1$ - StringPart xmlpart = new StringPart("XmlRequest", request, "UTF-8"); //$NON-NLS-1$//$NON-NLS-2$ + StringPart xmlpart = new StringPart("XMLRequest", request, "UTF-8"); //$NON-NLS-1$//$NON-NLS-2$ // TODO this is a BUG in BKU that doesn't allow the Content-Type header xmlpart.setContentType(null); @@ -104,6 +104,7 @@ public final class BKUPostConnection post_method.setRequestEntity(mprqe); HttpClient http_client = new HttpClient(); + int method_response = http_client.executeMethod(post_method); log.debug("method_response = " + method_response); //$NON-NLS-1$ -- cgit v1.2.3