Skip to content
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

Query parameters were not included in netty URI #4393

Merged
merged 2 commits into from
Feb 17, 2020

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented Feb 13, 2020

This is the issue:
#4369

I didn't find a better solution for this because the Netty HttpRequest doesn't have a method to add query parameters.

@@ -282,6 +283,14 @@ public void run() {
return settableFuture;
}

private String buildPathWithQueryParameters(URI requestUri) {
if (requestUri.getRawQuery() != null) {
return new StringBuilder(requestUri.getRawPath()).append("?").append(requestUri.getRawQuery()).toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to use return String.format("%s?%s", requestUri.getRawPath(), requestUri.getRawQuery());?

And do not forget about copyright year please...

@jansupol jansupol merged commit 706c01c into eclipse-ee4j:master Feb 17, 2020
@jansupol jansupol added this to the 2.30.1 milestone Feb 21, 2020
jansupol pushed a commit to jansupol/jersey that referenced this pull request Mar 23, 2020
* Query parameters were not included in netty URI

Signed-off-by: Jorge Bescos Gascon <[email protected]>

(cherry picked from commit 706c01c)
Signed-off-by: Jan Supol <[email protected]>
senivam pushed a commit to senivam/jersey that referenced this pull request Apr 22, 2020
* Query parameters were not included in netty URI

Signed-off-by: Jorge Bescos Gascon <[email protected]>

(cherry picked from commit 706c01c)
Signed-off-by: Jan Supol <[email protected]>
senivam pushed a commit to senivam/jersey that referenced this pull request Apr 27, 2020
* Query parameters were not included in netty URI

Signed-off-by: Jorge Bescos Gascon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants