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
istio-client query virtualservice get error: Could not resolve subtype of [simple type, class io.fabric8.istio.api.networking.v1beta1.IsHTTPRedirectRedirectPort]:
#4250
Closed
huaryliu opened this issue
Jul 5, 2022
· 1 comment
It looks like Jackson has known issues when dealing with unwrapped polymorphic deserialization. If port or derivedPort is included it does appropriately deduce the type, but when missing you get an exception. For it to be optional it looks like we need another jackson setting in Serialization.java:
Describe the bug
When virtualService has HTTPRedirect ,use istio-client query virtualservice list get a error:
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class io.fabric8.istio.api.networking.v1beta1.IsHTTPRedirectRedirectPort]: Cannot deduce unique subtype of
io.fabric8.istio.api.networking.v1beta1.IsHTTPRedirectRedirectPort
(2 candidates match)\n at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: io.fabric8.istio.api.networking.v1beta1.VirtualService["spec"]->io.fabric8.istio.api.networking.v1beta1.VirtualServiceSpec["http"]->java.util.ArrayList[1]->io.fabric8.istio.api.networking.v1beta1.HTTPRoute["redirect"]->io.fabric8.istio.api.networking.v1beta1.HTTPRedirect["RedirectPort"])\n\tat com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)\n\tatFabric8 Kubernetes Client version
5.12.2
Steps to reproduce
When virtualService has HTTPRedirect,yaml like this:
use istio-client query virtualservice list get a error:
Expected behavior
success
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.22.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: