You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a resource annotated with e.g. @Path("/report/{month : \\d{4}-\\d{2}}) configures Rest Assured to expect a path parameter named "month : \d{4". (Basically Quarkus injects the whole path, but RA does not support regex here.)
Expected behavior
Quarkus strips the regex from the injected URL, so only "/report/{month}" is injected into RA.
Actual behavior
Quarkus injects the raw path definition and breaks RA. Using pathParam("{month}", "2022-01") yields an exception about redundant ("month") and missing ("month : \d{4, 2") parameters.
How to Reproduce?
Create simple resource annotated with a regex @path
Use @TestHTTPEndpoint to configure RA in the test
Try to set the path parameter and run the test
Output of uname -a or ver
Linux enterprise 5.16.2-arch1-1 #1 SMP PREEMPT Thu, 20 Jan 2022 16:18:29 +0000 x86_64 GNU/Linux
Output of java -version
openjdk version "11.0.13" 2021-10-19 OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8) OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 7.3.3
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Having a resource annotated with e.g.
@Path("/report/{month : \\d{4}-\\d{2}})
configures Rest Assured to expect a path parameter named "month : \d{4". (Basically Quarkus injects the whole path, but RA does not support regex here.)Expected behavior
Quarkus strips the regex from the injected URL, so only "/report/{month}" is injected into RA.
Actual behavior
Quarkus injects the raw path definition and breaks RA. Using
pathParam("{month}", "2022-01")
yields an exception about redundant ("month") and missing ("month : \d{4, 2") parameters.How to Reproduce?
Output of
uname -a
orver
Linux enterprise 5.16.2-arch1-1 #1 SMP PREEMPT Thu, 20 Jan 2022 16:18:29 +0000 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.13" 2021-10-19 OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8) OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.3.3
Additional information
No response
The text was updated successfully, but these errors were encountered: