lilinkevin / rest-assured

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

Path arguments can't contain absolute-url prefix #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

*When* I call .get/.post/.put("{root}/rest/bar", rootUrl)

*Given* that rootUrl is absolute path, e.g. https://foo-bar.rhcloud.com

*Then* I expect request would be fired against 
http%3A%2F%2Ffoo-bar.rhcloud.com/rest/bar

What version of the product are you using? On what operating system?

RestAssured 2.3.0.

Please provide any additional information below.

This is a regression. It was working fine with 1.8.1. Possible workaround it to 
set

        RestAssured.baseURI = baseUri;
        RestAssured.port = port;
        RestAssured.basePath = basePath;

However, this is not that flexible.

Original issue reported on code.google.com by kpi...@redhat.com on 21 Feb 2014 at 8:24

GoogleCodeExporter commented 9 years ago
Currently, request is fired against 
http://localhost:8080/http%3A%2F%2Ffoo-bar.rhcloud.com/rest/bar

Original comment by kpi...@redhat.com on 21 Feb 2014 at 8:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is expected behaviour, please read comment #6 
(https://code.google.com/p/rest-assured/issues/detail?id=290#c6)  at issue 206.

Original comment by johan.ha...@gmail.com on 21 Feb 2014 at 10:08

GoogleCodeExporter commented 9 years ago
Perhaps it'll work if you disable URL encoding though

Original comment by johan.ha...@gmail.com on 21 Feb 2014 at 10:09