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
When we add On Exception Definition with OnWhen statement with YAML DSL, it adds additional when statement unexpectedly when we switch between 'Routes' tab and 'YAML' tab. This cause failure. It appears to require a fix similar to issue 1420 where it resolved the same for CatchDefinition. Please could someone help to resolve it. Thanks.
Describe the bug
When we add On Exception Definition with OnWhen statement with YAML DSL, it adds additional when statement unexpectedly when we switch between 'Routes' tab and 'YAML' tab. This cause failure. It appears to require a fix similar to issue 1420 where it resolved the same for CatchDefinition. Please could someone help to resolve it. Thanks.
id: route-d663
nodePrefixId: route-52e
from:
id: from-d6c1
uri: amqp
steps:
- choice:
id: choice-d1e9
when:
- id: when-19d8
expression:
groovy:
id: groovy-1c57
expression: 1=1
otherwise:
id: otherwise-c779
onException:
- onException:
id: onException-04a7
onWhen:
when:
id: when-61ee
expression:
simple:
id: simple-c2b6
expression: ${exception.statusCode} == 500
Steps to reproduce the behavior
"- route:
id: route-d663
nodePrefixId: route-52e
from:
id: from-d6c1
uri: amqp
steps:
- choice:
id: choice-d1e9
when:
- id: when-19d8
expression:
groovy:
id: groovy-1c57
expression: 1=1
otherwise:
id: otherwise-c779
"- routeConfiguration:
onException:
"- onException:
id: onException-04a7
onWhen:
id: when-61ee
expression:
simple:
id: simple-c2b6
expression: ${exception.statusCode} == 500
" - routeConfiguration:
onException:
id: onException-04a7
onWhen:
when:
id: when-e875
when:
id: when-61ee
expression:
simple:
id: simple-c2b6
expression: ${exception.statusCode} == 500
Variant
Web Application
Container Management (if applicable)
None
Operating System (if applicable)
None
Version
4.8.0
Relevant log output
No response
The text was updated successfully, but these errors were encountered: