-
Notifications
You must be signed in to change notification settings - Fork 738
Query string is duplicated in generated snippets #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are several tests around query strings that don't have any duplication so it's not immediately obvious what the cause may be. Can you please provide some more details:
A small sample that reproduces the problem would be ideal |
Almost all snippets, including
|
Thanks, I can see where the problem is. It was introduced by the fix for gh-239. |
@jkubrynski This should be fixed in the latest 1.1.2 snapshots available from https://repo.spring.io/libs-snapshot. Early testing of a snapshot would be much appreciated. |
Thanks @wilkinsona ! I confirm - it works correctly now :) |
I'm running into this problem. Can someone tell me how to use the latest snapshot where this is fixed via gradle? |
@gdboling
|
Hm, I'm still getting duplicate request params:
Here's my test
|
@gdboling Can you share a complete example please, or at least let me know the value of |
For now, here's URL:
And here's the controller method:
I'll see if I can provide a basic example via an empty project soon. |
Here's the simplest project. Just run
|
@gdboling However, once I added to the dependencies section testCompile('org.springframework.restdocs:spring-restdocs-core:1.1.2.BUILD-SNAPSHOT') all is well :-)
I had to do a similar thing when upgrading to 1.1.1, as for some reason the core jar wouldn't upgrade without specifically calling it out in the dependencies (used gradle 2.14 and 2.14.1) |
@embee1981 very good find! Works fine for me with the added dependency as well. I'm assuming that once this is released, the core dependency will no longer be needed? |
Reopening as the fix has introduced a cycle between |
After upgrading to 1.1.1.RELEASE query string is duplicated in generated snippets:
1.1.0.RELEASE
exams?count=10&page=1
1.1.1.RELEASE
exams?count=10&page=1?count=10&page=1
The text was updated successfully, but these errors were encountered: