You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2018/01/06 21:21:43 UTC

svn commit: r1820422 - in /jmeter/trunk: src/components/org/apache/jmeter/control/SwitchController.java xdocs/changes.xml

Author: pmouawad
Date: Sat Jan  6 21:21:42 2018
New Revision: 1820422

URL: http://svn.apache.org/viewvc?rev=1820422&view=rev
Log:
Bug 61771 - SwitchController : Switch field should be trimmed by safety
Bugzilla Id: 61771

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java?rev=1820422&r1=1820421&r2=1820422&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java Sat Jan  6 21:21:42 2018
@@ -130,6 +130,6 @@ public class SwitchController extends Ge
     }
 
     public String getSelection() {
-        return getPropertyAsString(SWITCH_VALUE);
+        return getPropertyAsString(SWITCH_VALUE).trim();
     }
 }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1820422&r1=1820421&r2=1820422&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Sat Jan  6 21:21:42 2018
@@ -91,6 +91,7 @@ Summary
         You can change locale by modifying in jmeter and jmeter.bat <code>JVM_ARGS</code> system property values.
         We'd also be very grateful if you can contribute translations in supported languages.
     </li>
+    <li>SwitchController now trims by default the content of switch to avoid issue related to unwanted spaces. See <bugzilla>61771</bugzilla></li>
 </ul>
 <!-- =================== Improvements =================== -->
 
@@ -119,6 +120,7 @@ Summary
 <ul>
     <li><bug>61675</bug>If Controller: Use expression by default and add a warning when the other mode is used. Contributed by Ubik Load Pack (support at ubikloadpack.com)</li>
     <li><bug>61770</bug>Module Controller: Inform user in UI that he needs to have at least one Controller in his plan. Contributed by Ubik Load Pack (support at ubikloadpack.com)</li>
+    <li><bug>61771</bug>SwitchController : Switch field should be trimmed by safety</li>
 </ul>
 
 <h3>Listeners</h3>