[ 
https://issues.apache.org/jira/browse/CAMEL-26011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18130944#comment-18130944
 ] 

Claus Ibsen commented on CAMEL-26011:
-------------------------------------

Fix in PR https://github.com/apache/camel/pull/28355 (one PR for the 16 data 
format tickets CAMEL-25995 to CAMEL-26011, except CAMEL-26000). The PR 
description lists the change per ticket.

_Claude Code on behalf of davsclaus_

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             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