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

Fix encoding of '?' in query parameter values by Encode.encodeQueryParam(..) #41062

Conversation

thomasdarimont
Copy link
Contributor

Previously ? in query parameter values where encoded as is which caused invalid URL values. We now replace ? characters in query parameter values with %3F.

Fixes #41060

@thomasdarimont thomasdarimont force-pushed the issue/gh-41060-fix-invalid-query-param-encoding branch from 964b238 to f524a64 Compare June 7, 2024 14:25
@gastaldi gastaldi requested a review from geoand June 7, 2024 15:31
Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

Thanks!

@geoand geoand added triage/backport triage/waiting-for-ci Ready to merge when CI successfully finishes triage/backport-3.8 labels Jun 7, 2024
@quarkus-bot

This comment has been minimized.

…ram(..)

Previously `?` in query parameter values where encoded as is which caused
invalid URL values. We now replace `?` characters in query parameter values with
`%3F`.

Fixes quarkusio#41060

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
@gsmet gsmet force-pushed the issue/gh-41060-fix-invalid-query-param-encoding branch from f524a64 to f244de0 Compare June 7, 2024 17:19
@gsmet
Copy link
Member

gsmet commented Jun 7, 2024

I fixed the small formatting issue and force pushed.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 7, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit f244de0.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.


Flaky tests - Develocity

⚙️ JVM Tests - JDK 17

📦 extensions/smallrye-reactive-messaging-kafka/deployment

io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase.sseStream - History

  • Assertion condition defined as a Lambda expression in io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase Expecting size of: [] to be greater than or equal to 2 but was 0 within 10 seconds. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: 
Assertion condition defined as a Lambda expression in io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase 
Expecting size of:
  []
to be greater than or equal to 2 but was 0 within 10 seconds.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)

📦 integration-tests/reactive-messaging-kafka

io.quarkus.it.kafka.KafkaConnectorTest.testFruits - History

  • Assertion condition defined as a Lambda expression in io.quarkus.it.kafka.KafkaConnectorTest expected: <6> but was: <5> within 10 seconds. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a Lambda expression in io.quarkus.it.kafka.KafkaConnectorTest expected: <6> but was: <5> within 10 seconds.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
	at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:790)
	at io.quarkus.it.kafka.KafkaConnectorTest.testFruits(KafkaConnectorTest.java:63)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)

@geoand geoand merged commit ec7291d into quarkusio:main Jun 8, 2024
46 checks passed
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 8, 2024
@quarkus-bot quarkus-bot bot added this to the 3.12 - main milestone Jun 8, 2024
@FroMage
Copy link
Member

FroMage commented Jun 10, 2024

See #41060 (comment) it's possible that this fix is actually wrong.

@gsmet gsmet modified the milestones: 3.12 - main, 3.11.2 Jun 10, 2024
@gsmet gsmet modified the milestones: 3.11.2, 3.8.6 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid encoding of '?' in query parameter values by Encode.encodeQueryParam
4 participants