Claus Ibsen created CAMEL-26745:
-----------------------------------

             Summary: camel-platform-http / camel-hazelcast - enum option 
default value is not one of the declared enum values
                 Key: CAMEL-26745
                 URL: https://issues.apache.org/jira/browse/CAMEL-26745
             Project: Camel
          Issue Type: Bug
          Components: camel-catalog, camel-platform-http, camel-hazelcast
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Two endpoint options of type enum document a defaultValue that is not in their 
own enum list:

* platform-http cookieSameSite: default Lax, enum STRICT, LAX, NONE
* hazelcast-queue queueConsumerMode: default Listen, enum listen, poll

Tooling shows a default that is not among the allowed values, and 
AbstractCamelCatalog.asEndpointUri (exact equals) drops only the documented 
spelling. Runtime behaviour does not change, as enum conversion is 
case-insensitive.

The four Azure options with the same issue (amqpTransportType of 
azure-eventhubs and azure-servicebus, consistencyLevel of azure-cosmosdb, 
blockListType of azure-storage-blob) are left out: they are component options, 
and the camel-spring-boot generator turns their defaultValue into a Java 
constant, so changing them needs a generator change in camel-spring-boot first.

GitHub PR: https://github.com/apache/camel/pull/29418 (by Dhairya-007)



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

Reply via email to