-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus REST client is unable to determine base URI with MP-style properties after MP bump and I can't see anything documented #44067
Comments
/cc @cescoffier (rest-client), @geoand (rest-client) |
cc @radcortez |
I created this issue in hurry, but for the context, this is issue now for both RESTEasy Classic client and Quarkus REST client. I suppose specs somehow changed, but if so, let's document Quarkus behavior changed as well, at least highlight the bump. Thanks |
I'll have a look |
Thanks |
You are using simple class names for the REST Client with MP properties. This is not described in the specification and only worked by accident: The amount of lookups performed by the REST Client for configuration was getting out of hand, so we restricted the amount of lookups. In fact, simple class name is not part of the documentation, but we did keep it for Quarkus style configuration For MP style, it was never part of the specification and there is no documentation about it, so I'm unsure how you got to that configuration. |
Any of these would work:
I can readd the Simple Name for MP style, but we never had a test for it in Quarkus, so #43345 never failed. |
This test was added long before I came to QE and our colleague @Sgitario has moved quarkus-qe/quarkus-test-suite#2 to other job so I don't where it came from. In general, we usually do what we find in the docs and but I cannot say with certainty where it came from. If you agree to at least add a small note to the migration guide, I think we can close this. Unless you are sure it was never in Quarkus docs. |
Fun fact @radcortez , setting
But linked Eclipse docs says I can use it. Did I misread it? |
Initially, we only used the MP style configuration. Later, when we wanted to expand the configuration, we introduced the I found no references to Simple Name, so I believe it was never there. Even for When I was doing the change, I tried to be careful to follow both docs, our tests, and the specification, and since I couldn't find any references to a Simple Name MP style, I did remove it (hey, one less lookup :)), but I guess I could have kept it. I'm fine to include a note about it. |
Thanks, I think it's better to follow specs. But I'll let @geoand to have a say. Personally I'll migrate our test. |
Probably safer to add the note just in case |
Hum, I guess this creates a clash with the |
I only changed that one line in the reproducer, there is no |
Correct. No need to be sorry, it was a good find :) I'll fix it. |
Added this to the Migration Guide: |
Thank you |
Describe the bug
My app started failing after #43959. There is nothing in migration guide and I don't know if this is expected. Please provide context. Thanks
Expected behavior
Documentation or app works. Worked with 3.15.x.
Actual behavior
REST client is missing base URI after MP bump.
How to Reproduce?
Steps to reproduce the behavior:
Output of
uname -a
orver
Fedora
Output of
java -version
Temurin 21
Quarkus version or git rev
999-SNAPSHOT
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven 3.9.4
Additional information
No response
The text was updated successfully, but these errors were encountered: