Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
@jbescos jbescos requested review from senivam and jansupol February 13, 2020 10:27
@@ -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...

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
@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 <jorge.bescos.gascon@oracle.com>

(cherry picked from commit 706c01c)
Signed-off-by: Jan Supol <jan.supol@oracle.com>
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 <jorge.bescos.gascon@oracle.com>

(cherry picked from commit 706c01c)
Signed-off-by: Jan Supol <jan.supol@oracle.com>
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 <jorge.bescos.gascon@oracle.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants