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
The bug is that requests made using client1.MyClient uses the URL of myConfig2.
Expected behavior
Using configKey should always resolve the corresponding configuration properties, regardless of the class name.
Actual behavior
Since Quarkus 3.17.0, a REST client may use the wrong configuration for a configKey, when multiple REST client interfaces have the same simple class name.
Run gradle check and the test method in MyTest will fail because of the Quarkus bug. It fails because the response from myClient1.get() is expected to receive the payload of the endpoint /hello1, but it actually receives the payload of the endpoint /hello2.
The test passes when changing the Quarkus version to 3.16.4.
Output of uname -a or ver
No response
Output of java -version
21
Quarkus version or git rev
3.17.3
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
I have 2 REST clients with the same simple class name but different packages:
They use different configKey:
I configure them using the configKey:
The bug is that requests made using
client1.MyClient
uses the URL ofmyConfig2
.Expected behavior
Using configKey should always resolve the corresponding configuration properties, regardless of the class name.
Actual behavior
Since Quarkus 3.17.0, a REST client may use the wrong configuration for a configKey, when multiple REST client interfaces have the same simple class name.
It works as expected in Quarkus 3.16.4.
How to Reproduce?
Reproducer: https://github.com/elvoe/quarkus-bug-rest-client-config
Run
gradle check
and the test method in MyTest will fail because of the Quarkus bug. It fails because the response frommyClient1.get()
is expected to receive the payload of the endpoint/hello1
, but it actually receives the payload of the endpoint/hello2
.The test passes when changing the Quarkus version to 3.16.4.
Output of
uname -a
orver
No response
Output of
java -version
21
Quarkus version or git rev
3.17.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
The issue has similarities with #44989
The text was updated successfully, but these errors were encountered: