geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r557540 - /geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java
Date Thu, 19 Jul 2007 09:54:11 GMT
Author: vamsic007
Date: Thu Jul 19 02:54:10 2007
New Revision: 557540

URL: http://svn.apache.org/viewvc?view=rev&rev=557540
Log:
GERONIMO-3333 Import CA Reply results in error when Certificate text contains extra spaces
  o Trim the certificate text before the import step.

Modified:
    geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java

Modified: geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java?view=diff&rev=557540&r1=557539&r2=557540
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/keystores/ImportCAReplyHandler.java
Thu Jul 19 02:54:10 2007
@@ -59,6 +59,9 @@
     	if("Cancel".equals(request.getParameter("submit")))
     		return CERTIFICATE_DETAILS+BEFORE_ACTION;
         String pkcs7cert = request.getParameter("pkcs7cert");
+        if(pkcs7cert != null) {
+            pkcs7cert = pkcs7cert.trim();
+        }
         KeystoreData data = ((KeystoreData) request.getPortletSession(true).getAttribute(KEYSTORE_DATA_PREFIX
+ id));
         try {
             data.importPKCS7Certificate(alias, pkcs7cert);



Mime
View raw message