Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[BUG] Cannot parse file with when -> simple -> expression , force to use when -> simple and directly provide the String #865

Open
apupier opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@apupier
Copy link
Member

apupier commented Sep 18, 2023

Describe the bug

Cannot parse file with when -> simple -> expression , force to use when -> simple and directly provide the String

To Reproduce
Steps to reproduce the behavior:

  1. Go to source editor and paste:
- route:
    id: route-3893
    from:
      uri: 'timer:'
      steps:
      - choice:
          when:
          - simple:
              expression: condition1
            steps:
            - log:
                message: reproducer
  1. Click onSync
  2. The choice is missing
    In more complex case, the full route might not be displayed (but not found simple reproducer)

Expected behavior
A clear and concise description of what you expected to happen.

Logs

2023-09-18 09:24:50,603 ERROR [io.kao.bac.cam.mod.dep.kam.ste.FlowStepDeserializer] (executor-thread-2) Error trying to deserialize step: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: io.kaoto.backend.camel.model.deployment.kamelet.step.ChoiceFlowStep["choice"]->io.kaoto.backend.camel.model.deployment.kamelet.step.choice.SuperChoice["when"]->java.util.ArrayList[0]->io.kaoto.backend.camel.model.deployment.kamelet.step.choice.Choice["simple"])

Environment (please complete the following information):

  • OS:
  • Output of the mvn -version` command
  • Kaoto Version [e.g. 1.0]

Additional context
Add any other context about the problem here.

@apupier apupier added the bug Something isn't working label Sep 18, 2023
@igarashitm igarashitm assigned igarashitm and unassigned igarashitm Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants