Closed
Conversation
vlsi
requested changes
Jun 14, 2019
test/resources/org/apache/jmeter/protocol/http/util/shift_jis.properties
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #467 +/- ##
============================================
+ Coverage 53.68% 53.68% +<.01%
+ Complexity 9402 9401 -1
============================================
Files 1000 1000
Lines 61554 61557 +3
Branches 6937 6937
============================================
+ Hits 33044 33046 +2
Misses 26099 26099
- Partials 2411 2412 +1
Continue to review full report at Codecov.
|
ham1
reviewed
Jun 16, 2019
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
vlsi
requested changes
Jun 20, 2019
src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Outdated
Show resolved
Hide resolved
src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Outdated
Show resolved
Hide resolved
src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Outdated
Show resolved
Hide resolved
src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Show resolved
Hide resolved
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
9867c1f to
be10948
Compare
vlsi
reviewed
Jun 27, 2019
vlsi
reviewed
Jun 27, 2019
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
vlsi
reviewed
Jun 27, 2019
test/src/org/apache/jmeter/protocol/http/util/TestHTTPArgument.java
Outdated
Show resolved
Hide resolved
ham1
reviewed
Sep 26, 2019
|
|
||
| public class TestHTTPArgument { | ||
|
|
||
| @Rule |
Contributor
There was a problem hiding this comment.
Please use 4 spaces for indents
Contributor
|
Thanks for this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Class name: HTTPArgument.java
Method name: HTTPArgument (constructor)
Class name: HttpHC4Impl.java
Method name: createUrlEncodedFormEntity
Replaced java.net.URLDecoder class from org.apache.commons.codec.net.URLCodec class
Motivation and Context
JMeter uses java.net.URLDecoder class for URL encoding.
Its drawback : This library can not encode Shift_JIS correctly because of different specific interpretation between Java and IE.
Because of browser specification, char code is zipped.
Browser encode Japanese text as following.
初期値大阪市 ⇒ %8F%89%8A%FA%92l%91%E5%8D%E3%8Es
初 = %8F%89
期 = %8A%FA
値 = %92l ← % is lack
大 = %91%E5
阪 = %8D%E3
市 = %8Es ← % is lack
JMeter should use org.apache.commons.codec.net.URLCodec class for URL encoding.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63130
How Has This Been Tested?
I have created one sample application, which contain some pages having shift_jis encoding, and deployed the same in tomcat server.
Created the test plan in Jmeter tool and configure it so that it can receive all the incoming request from the application.
Start the Http(s) Test Script Recorder
Run the application, and post the request from the application.
Validate the result in response page.
Run the "ant test" command to be ensured that no existing tests are breaking because of these changes.
Run the "ant package-and-check" to check the coding guidelines.
Other Details:
OS: windows 8
Java: 8
Jmeter version: 5.0
Hardware: PC
Screenshots (if appropriate):
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
[x ] My code follows the code style of this project.
I have updated the documentation accordingly.