-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
RESTEasy Reactive: ClientBuilder
and Client
should not share the same Configuration
instance
#45555
Comments
/cc @FroMage (rest), @geoand (rest), @radcortez (config), @stuartwdouglas (rest) |
Nice catch! Would you like to contribute a fix? |
Sure! I'll send a PR later today. |
🙏🏽 |
Sola-ris
added a commit
to Sola-ris/quarkus
that referenced
this issue
Jan 14, 2025
Sola-ris
added a commit
to Sola-ris/quarkus
that referenced
this issue
Jan 14, 2025
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 21, 2025
* Fix quarkusio#45555 (cherry picked from commit 5e03739)
carlesarnal
pushed a commit
to carlesarnal/quarkus
that referenced
this issue
Feb 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating a
Client
from aClientBuilder
, theConfiguration
is passed to the resultingClient
instead of copied, so all properties and providers registered on the client are visible to the builder and all other clients build from it.For comparison, when going from a
Client
to aWebTarget
, theConfiguration
is copied.Expected behavior
Each
Client
should receive a copy of theConfiguration
of theClientBuilder
.Actual behavior
The
Client
andClientBuilder
share the sameConfiguration
instance.How to Reproduce?
Reproducer: https://github.com/Sola-ris/quarkus-configuration-reporducer
Run via
./mvnw verify
Output of
uname -a
orver
Linux xxx 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.5" 2024-10-15 LTS OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (build 21.0.5+11-LTS, mixed mode, sharing)
Quarkus version or git rev
3.17.6
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Additional information
When replacing the reproducer's dependencies with their RESTEasy Classic versions, the test passes.
The text was updated successfully, but these errors were encountered: