swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Real GET request path differs from log complite request path #305

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
given().log().all().expect().log().all().get("http://httpbin.org/get?param=value
=");

What is the expected output? What do you see instead?
Expected:

Request method: GET
Request path:   http://httpbin.org/get?param=value%3D

GOT:

Request method: GET
Request path:   http://httpbin.org/get?param=value

When the real request path is 
    "url": "http://httpbin.org/get?param=value%3D",
    "args": {
        "param": "value="
    },

What version of the product are you using? On what operating system?
2.3.1-SNAPSHOT (2.3.0)

Please provide any additional information below.
Err in 
com.jayway.restassured.internal.RequestSpecificationImpl#generateRequestUriToLog

because of splitting by '=', when for request it urlencoded.

Is any way to turn off query encoding when it already urlencoded or manually?
Because of 
given().log().all().expect().log().all().get("http://httpbin.org/get?param=value
%3D");

sends request to http://httpbin.org/get?param=value%253D

Original issue reported on code.google.com by twilig...@gmail.com on 31 Jan 2014 at 11:52

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 31 Jan 2014 at 1:33

GoogleCodeExporter commented 9 years ago
Yes, given().urlEncodingEnabled(false). ..

Original comment by johan.ha...@gmail.com on 3 Feb 2014 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 3 Feb 2014 at 2:23

GoogleCodeExporter commented 9 years ago
https://github.com/jayway/rest-assured/pull/25

Original comment by johan.ha...@gmail.com on 3 Feb 2014 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 4 Feb 2014 at 6:12