Bug 41319

Summary: URLRewritingModifier : Allow Parameter value to be url encoded
Product: JMeter Reporter: bugmenot <bugmenot>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description bugmenot 2007-01-08 11:15:04 UTC
We are having issues with the URLRewritingModifier functionality.  We are trying
to rewrite form parameters that have plus signs in them.  Unfortunately, the
parameter is getting url decoded before it is submitted for the next page.

So for example:
hello+all

gets submitted as
hello all

on the subsequent page.

I've been able to fix the problem by modifying URLRewritingModifier.java and
changing:
sampler.getArguments().addArgument(new HTTPArgument(getArgumentName(), value,
true));


to:
sampler.getArguments().addArgument(new HTTPArgument(getArgumentName(), value,
false));


and this has resolved the issue.  However, this may break parameters retrieved
from the url itself.  My suggestion would be to have a checkbox to indicate
whether it is a form parameter or not and create the new argument appropriately.
Comment 1 Philippe Mouawad 2014-07-19 20:37:28 UTC
Date: Sat Jul 19 20:30:58 2014
New Revision: 1611959

URL: http://svn.apache.org/r1611959
Log:
Bug 41319 - URLRewritingModifier : Allow Parameter value to be url encoded
Bugzilla Id: 41319

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/URLRewritingModifierGui.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml


Date: Sat Jul 19 20:35:59 2014
New Revision: 1611960

URL: http://svn.apache.org/r1611960
Log:
Bug 41319 - URLRewritingModifier : Allow Parameter value to be url encoded
Bugzilla Id: 41319

Modified:
    jmeter/trunk/docs/images/screenshots/url_rewriter.png
    jmeter/trunk/xdocs/images/screenshots/url_rewriter.png
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 2 Philippe Mouawad 2014-07-19 21:06:03 UTC
Date: Sat Jul 19 21:04:59 2014
New Revision: 1611965

URL: http://svn.apache.org/r1611965
Log:
Bug 41319 - URLRewritingModifier : Allow Parameter value to be url encoded
Fix test error
Bugzilla Id: 41319

Modified: