lilinkevin / rest-assured

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

Duplicated path #308

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I do a request like when().get("/project/request/{id}/", request.getId()), 
it actually does a request to /project/request/project/request/1. If I change 
it to when().get("/request/{id}/", request.getId()), it works correctly and 
does a request to /request/1.

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

REST-assured: 2.3.0
OS: Kubuntu 13.10

Original issue reported on code.google.com by el...@elnur.me on 10 Feb 2014 at 12:23

GoogleCodeExporter commented 9 years ago
It behaves the same way even if I do when().get(URI.create("/project/request/" 
+ request.getId())).

Original comment by el...@elnur.me on 10 Feb 2014 at 12:32

GoogleCodeExporter commented 9 years ago
This is a blocking issue since I can't find a way to test this part of the API. 
Please fix this as soon as you can.

Original comment by el...@elnur.me on 10 Feb 2014 at 12:37

GoogleCodeExporter commented 9 years ago
Seems like I was wrong. It duplicated it even when I do just 
when().get("/request/{id}", request.getId()).

Original comment by el...@elnur.me on 10 Feb 2014 at 12:44

GoogleCodeExporter commented 9 years ago
It works okay for /project/foo/1, but not for /project/request/1. Like it's 
going crazy because of the “request” word.

Original comment by el...@elnur.me on 10 Feb 2014 at 12:48

GoogleCodeExporter commented 9 years ago
Oh. Never mind. It was actually caused by a redirect in my API. LOL. Sorry. :)

Original comment by el...@elnur.me on 10 Feb 2014 at 12:54

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 14 Feb 2014 at 6:38