janwesterkamp opened a new issue, #7085:
URL: https://github.com/apache/camel-quarkus/issues/7085

   ### Bug description
   
   I am using the choice/when statements to do input validation and sometimes 
there are no statements inside.
   After switching Quarkus version 3.18.4 to 3.19.1 (which includes Camel 
Quarkus 3.19.0), these empty checks are ignored, which causes a breaking change.
   I found a workaround for this by adding something like a .log() statement - 
then it will be validated again.
   
   However, I thing this is a bug that needs to be fixed.
   
   Here is some example route to show the issue:
   
   ```
   //FIXME
   from("direct:test")
     //TODO Set this to "2" for the workaround
     .setHeader("test", constant("1"))
     .choice()
         .when(header("test").isEqualTo("1"))
            //Empty - fails on Quarkus version 3.19.1
         .when(header("test").isEqualTo("2"))
             //FIXME Workaround for Quarkus version 3.19.1 - empty when body 
causes issue!
             .log(LoggingLevel.INFO, "Processing test=${header.test}")
          .otherwise()
             .throwException(new RuntimeException("Vaildation error!"))
      .end()
   ;
   ```
   
   May be the latest changes regarding .when() statements causing this as an 
side effect?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to