quarkiverse / quarkus-cxf

Quarkus CXF Extension to support SOAP based web services.
Apache License 2.0
78 stars 60 forks source link

[Quarkus 3.6] Weird config error when setting nonexistent http-conduit-factory value #1048

Open famod opened 1 year ago

famod commented 1 year ago

I'm getting the following config error when setting a nonexistent factory (by mistake), e.g. -Dquarkus.cxf.http-conduit-factory=foo:

java.lang.RuntimeException: io.smallrye.config.ConfigValidationException: Configuration validation failed:
    java.lang.IllegalArgumentException: SRCFG00039: The config property quarkus.cxf.http-conduit-factory with the config value "foo" threw an Exception whilst being converted SRCFG00049: Cannot convert foo to enum class io.quarkiverse.cxf.CxfClientConfig$HTTPConduitImpl, allowed values: cxfd-efault,http-client-httpc-onduit-factory,urlc-onnection-httpc-onduit-factory,quarkus-cxfd-efault
...

The "allowed values" look very odd:

cxfd-efault,http-client-httpc-onduit-factory,urlc-onnection-httpc-onduit-factory,quarkus-cxfd-efault

ppalaga commented 11 months ago

Yeah, this back-and-forth enum string juggling in Quarkus does not work well if one prefers other than dash-case representation. I have filed https://github.com/quarkusio/quarkus/issues/36847

ppalaga commented 10 months ago

https://github.com/quarkusio/quarkus/issues/36847 is fixed, we need to verify with Quarkus 3.6

famod commented 10 months ago

...or 3.5.2 (it has been backported).

ppalaga commented 9 months ago

Still not what we need https://github.com/quarkusio/quarkus/issues/36847#issuecomment-1868392426