Claus Ibsen created CAMEL-26513:
-----------------------------------

             Summary: camel-printer - a print job is skipped silently when the 
print service does not support the doc flavor
                 Key: CAMEL-26513
                 URL: https://issues.apache.org/jira/browse/CAMEL-26513
             Project: Camel
          Issue Type: Bug
          Components: camel-printer
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while fixing CAMEL-26193. {{PrinterProducer.print}} (PrinterProducer.java 
around line 62) checks {{printService.isDocFlavorSupported(flavor)}} and, when 
the flavor is not supported, does not print and does not fail: the exchange 
completes as if the job was sent.

The {{DocPrintJob.print}} javadoc says an exception is generated for a doc 
flavor that cannot be printed. Throw a {{PrintException}} naming the flavor and 
the print service instead, so the route sees the failure. Routes that "worked" 
before would now fail, so add an upgrade-guide entry.

_Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to