You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/04/12 22:09:40 UTC

DO NOT REPLY [Bug 53068] New: Cannot POST a "%" character - URLDecoder executes multiple times

https://issues.apache.org/bugzilla/show_bug.cgi?id=53068

             Bug #: 53068
           Summary: Cannot POST a "%" character - URLDecoder executes
                    multiple times
           Product: JMeter
           Version: 2.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: aj@drfloob.com
    Classification: Unclassified


Saving the Test Plan apparently passes an HTTP Request's Raw Post Body through
URLDecoder 3 times. Running the Test Plan passes it through URLDecoder once.

I need to post XML content to a web service, and that content includes a "%"
symbol. I can either escape it 4x to save and run (e.g. "%25252525"), or escape
once and run (e.g. "%25"). After either case, saving or running the Test Plan
mangles my Post Body, so I have to start over.

To illustrate the problem quickly, create an HTTP Request with "%%" alone in
the post body and save. You should get "Problem updating GUI - see log for
details". The first error in the log (among a few) is:

2012/04/12 12:38:59 ERROR - jmeter.gui.GuiPackage: Problem retrieving gui
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in
escape (%) pattern - For input string: "%?"
    at java.net.URLDecoder.decode(Unknown Source)
    at
org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:113)
    at
org.apache.jmeter.protocol.http.util.HTTPArgument.<init>(HTTPArgument.java:95)
    at
org.apache.jmeter.protocol.http.config.gui.UrlConfigGui.modifyTestElement(UrlConfigGui.java:202)
    at
org.apache.jmeter.protocol.http.config.gui.MultipartUrlConfigGui.modifyTestElement(MultipartUrlConfigGui.java:60)
    at
org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui.modifyTestElement(HttpTestSampleGui.java:115)
    at org.apache.jmeter.gui.GuiPackage.updateCurrentNode(GuiPackage.java:415)
    at org.apache.jmeter.gui.GuiPackage.updateCurrentGui(GuiPackage.java:396)
    at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:72)
    at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:41)
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 53068] Cannot POST a "%" character - URLDecoder executes multiple times

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53068

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|                            |DUPLICATE

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-04-13 07:09:34 UTC ---
Hello,
 Think this issue duplicates 52613 and has been fixed in nightly build.
Can you download it and Check if it's the case and if not reopen thé issue?
Thanks

*** This bug has been marked as a duplicate of bug 52613 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 53068] Cannot POST a "%" character - URLDecoder executes multiple times

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53068

--- Comment #2 from aj@drfloob.com 2012-04-13 14:53:47 UTC ---
Running nightly-r1325640 does fix this problem for me. Thank you.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.