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 parameter encoding has changed in Helidon 4, helidon-connector related #8228

Closed
jvissers opened this issue Jan 12, 2024 · 0 comments
Closed
Assignees
Labels
4.x Version 4.x jax-rs JAX-RS and Jersey related issues webclient
Milestone

Comments

@jvissers
Copy link

jvissers commented Jan 12, 2024

Environment Details

  • Helidon Version: 4.0.2
  • Helidon MP
  • JDK version: Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)
  • OS: Ubuntu 23.10

Problem Description

We are observing a change in the way which Helidon 4 encodes query parameters. This seems to be related to changed implementation in Helidon 4 connector.

Given the following:

        try (var r = target.path("severitylevels")
                .queryParam("q", "code.like('OIDECS_2658')")
                .queryParam("order", "description desc, audit.createdBy asc")
                .request()
                .get()) {

Helidon 3 encodes query parameters as:

description desc, audit.createdBy asc

Whereas Helidon 4 results in:

description+desc,+audit.createdBy+asc

Steps to reproduce

Some reference material (thanks for @ljnelson for digging that up)

here's 4.0.2 where the connector translates to WebClient-speak: https://github.com/helidon-io/helidon/blob/4.0.2/jersey/connector/src/main/java/io/helidon/jersey/connector/HelidonConnector.java#L148-L157

here's where the 3.2.5 version does it: https://github.com/helidon-io/helidon/blob/3.2.5/jersey/connector/src/main/java/io/helidon/jersey/connector/HelidonConnector.java#L137-L174
HelidonConnector.java

@spericas spericas self-assigned this Jan 12, 2024
@spericas spericas added 4.x Version 4.x jax-rs JAX-RS and Jersey related issues webclient labels Jan 12, 2024
@jvissers jvissers changed the title Query parameer encoding has changed in Helidon 4, helidon-connector related Query parameter encoding has changed in Helidon 4, helidon-connector related Jan 12, 2024
spericas added a commit to spericas/helidon that referenced this issue Jan 12, 2024
…ctor from re-encoding and already encoded URI and (2) extends our URI decoder logic to support '+' which is used by Jersey to encode a space character. See issue helidon-io#8228.
spericas added a commit to spericas/helidon that referenced this issue Jan 12, 2024
…ctor from re-encoding and already encoded URI and (2) extends our URI decoder logic to support '+' which is used by Jersey to encode a space character. See issue helidon-io#8228.
spericas added a commit to spericas/helidon that referenced this issue Jan 12, 2024
…ctor from re-encoding and already encoded URI and (2) extends our URI decoder logic to support '+' which is used by Jersey to encode a space character. See issue helidon-io#8228.
@barchetta barchetta added this to the 4.0.3 milestone Jan 12, 2024
spericas added a commit that referenced this issue Jan 12, 2024
…ctor from re-encoding and already encoded URI and (2) extends our URI decoder logic to support '+' which is used by Jersey to encode a space character. See issue #8228. (#8232)
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x jax-rs JAX-RS and Jersey related issues webclient
Projects
Archived in project
Development

No branches or pull requests

3 participants