You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2014/02/24 01:57:06 UTC

svn commit: r1571123 - in /jmeter/trunk: src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java xdocs/changes.xml

Author: sebb
Date: Mon Feb 24 00:57:06 2014
New Revision: 1571123

URL: http://svn.apache.org/r1571123
Log:
keytool error: Invalid escaped character in AVA: - some characters must be escaped
Bugzilla Id: 56178

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java?rev=1571123&r1=1571122&r2=1571123&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java Mon Feb 24 00:57:06 2014
@@ -69,7 +69,9 @@ public class KeyToolUtils {
     static {
         StringBuilder sb = new StringBuilder();
         sb.append("CN=_ DO NOT INSTALL unless this is your certificate (JMeter root CA)"); // $NON-NLS-1$
-        addElement(sb, "OU=Username: ", System.getProperty("user.name")); // $NON-NLS-1$ $NON-NLS-2$
+        String userName = System.getProperty("user.name"); // $NON-NLS-1$
+        userName.replace('\\','/'); // Backslash is special (Bugzilla 56178)
+        addElement(sb, "OU=Username: ", userName); // $NON-NLS-1$
         addElement(sb, "C=", System.getProperty("user.country")); // $NON-NLS-1$ $NON-NLS-2$
         DNAME_ROOT_CA_KEY = sb.toString();
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1571123&r1=1571122&r2=1571123&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Mon Feb 24 00:57:06 2014
@@ -123,6 +123,7 @@ A workaround is to use a Java 7 update 4
 <h3>HTTP Samplers and Test Script Recorder</h3>
 <ul>
 <li><bugzilla>55998</bugzilla> - HTTP recording – Replacing port value by user defined variable does not work</li>
+<li><bugzilla>56178</bugzilla> - keytool error: Invalid escaped character in AVA: - some characters must be escaped</li>
 </ul>
 
 <h3>Other Samplers</h3>