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
[gateway] if policy in chain fail, than following policies will be execute #3599
Comments
I suppose it's only relative to stream-based policy (ie. with @OnRequestContent / @OnResponseContent) ? |
I notice that in stream-based policy. |
Do you have any news about this issue? |
@brasseld Hello. +1 Current behavior looks quite strange. That do you think about it? Is it really a bug or a feature? ) |
Kind reminder. It seems that we did not get the idea of how policy chain (and it's flow control) work or something was broken. Can you please explain. |
+1 Hello, friends. I have found the same issue in failed policy chain execution. This is a bug, isn't it? |
Hello all, Seems you are right, in the case of stream-policy, the failWith does not stop the chain. I'll have a look soon. |
Thanks a lot @brasseld |
Hello. I cann't resolve it. Please, help me. |
If policy in chain fail, than following policies will be execute. Policy chain return response from
first failed policy. But I can see in the logs, that following policy executed. Bug reproduced with
different policy.
Expected Behavior
If policy in chain fail, following policy will not be execute.
Current Behavior
If policy in chain fail, following policy will be execute.Bug reproduced with
different policy.
Steps to Reproduce (for bugs)
This is policy chain
Example-1-0-0 (1).zip
In first policy I add log.info
io.gravitee.policy
gravitee-policy-json-validation
1.4.0-SNAPSHOT
Code:
io.gravitee.policy
gravitee-policy-request-validation
1.6.1-SNAPSHOT
Code:
It means after fail JsonValidationPolicy, RequestValidationPolicy executed.
Context
It may be produce different critical errors.
For example:
If json validation didn't validate request and following policy will send request to any url,
invalid request must be send to any url.
Your Environment
The text was updated successfully, but these errors were encountered: