Claus Ibsen created CAMEL-26011:
-----------------------------------

             Summary: camel-barcode - barcodeFormat lists four formats that 
marshal cannot encode
                 Key: CAMEL-26011
                 URL: https://issues.apache.org/jira/browse/CAMEL-26011
             Project: Camel
          Issue Type: Bug
          Components: camel-barcode
    Affects Versions: 4.18.0, 4.22.0, 4.23.0
            Reporter: Claus Ibsen
             Fix For: 4.24.0


The {{barcodeFormat}} option of the barcode data format lists 17 values 
({{BarcodeDataFormat}} in camel-core-model, main 56aa5f4970a6, line 39). Four 
of them have no encoder in ZXing: MAXICODE, RSS_14, RSS_EXPANDED and 
UPC_EAN_EXTENSION. Marshal with any of them fails with 
{{IllegalArgumentException: No encoder available for format ...}}. Unmarshal 
detects the format of the image itself, whatever barcodeFormat says.

Checked on 4.24.0-SNAPSHOT with {{camel run}}: marshal of "12345678" with 
{{barcodeFormat: MAXICODE}}, and with {{RSS_14}}: "No encoder available for 
format MAXICODE" (and RSS_14).

*Proposed change*: list only the formats ZXing can encode, or say in the option 
description which ones marshal cannot write.

_Claude Code on behalf of davsclaus_



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

Reply via email to