Closed ytvnr closed 2 years ago
We have weird behaviour resulting in timeout when a TransformationException occurs in a TransformableRequestStream or TransformableResponseStream and no policyChain is set.
TransformationException
TransformableRequestStream
TransformableResponseStream
policyChain
With the fix, the API will end will a readable error instead of timeout.
You can check with this API: https://apim-3-10-x-console.cloud.gravitee.io/#!/environments/DEFAULT/apis/69635ef0-422e-4259-a35e-f0422ef25959/design
Flows are already configured to have the error
Steps to reproduce the behaviour:
Not reproduced
The chain should fail properly. (no timeout)
JsonToJson
XsltPolicy
TransformableStream
PolicyChain
gravitee-gateway-api
Tested on the 3.10.X env Browser: Chrome Version 98.0.4758.80 , macOS Big Sur v11.6 Works as expected.
:collision: Describe the bug
We have weird behaviour resulting in timeout when a
TransformationException
occurs in aTransformableRequestStream
orTransformableResponseStream
and nopolicyChain
is set.With the fix, the API will end will a readable error instead of timeout.
:sunrise_over_mountains: To Reproduce
You can check with this API: https://apim-3-10-x-console.cloud.gravitee.io/#!/environments/DEFAULT/apis/69635ef0-422e-4259-a35e-f0422ef25959/design
Flows are already configured to have the error
JsonToJson Policy
Steps to reproduce the behaviour:
JsonToXml Policy
Steps to reproduce the behaviour:
JWS Policy
Not reproduced
XmlToJson Policy
Steps to reproduce the behaviour:
XSLT Policy
Steps to reproduce the behaviour:
:rainbow: Expected behaviour
The chain should fail properly. (no timeout)
:movie_camera: Useful information
JsonToJson
Policy andXsltPolicy
are good examples but we need to investigate if other policies are in this case.TransformableStream
with aPolicyChain
TransformationException
ingravitee-gateway-api