This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d4a774b9c36e camel-azure-storage-datalake: 
CamelAzureStorageDataLakeFileName is set by the consumer but documented 
producer-only (#29979)
d4a774b9c36e is described below

commit d4a774b9c36e6bf0ed2c53305b541a60f8ca0a53
Author: dhairya05 <[email protected]>
AuthorDate: Sun Nov 15 12:52:52 2026 +0530

    camel-azure-storage-datalake: CamelAzureStorageDataLakeFileName is set by 
the consumer but documented producer-only (#29979)
    
    The consumer puts the file name on every exchange it creates, at the end
    of createExchangeFromFile:
    
        getEndpoint().setResponseOnExchange(response, exchange);
    
        exchange.getIn().setHeader(DataLakeConstants.FILE_NAME, fileName);
        return exchange;
    
    but the header is labelled producer and described only as the name of
    the file "on which operation is to be performed", so nothing in the
    consumer's header table says which file an exchange came from.
    
    Drop the label so it lands in common, and describe both directions, as
    the sibling camel-azure-storage-blob header CamelAzureStorageBlobBlobName
    needs too.
---
 .../org/apache/camel/catalog/components/azure-storage-datalake.json | 2 +-
 .../component/azure/storage/datalake/azure-storage-datalake.json    | 2 +-
 .../camel/component/azure/storage/datalake/DataLakeConstants.java   | 3 ++-
 .../camel/builder/endpoint/dsl/DataLakeEndpointBuilderFactory.java  | 6 +++---
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-storage-datalake.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-storage-datalake.json
index 5028cf8c96be..f05a6001791f 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-storage-datalake.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-storage-datalake.json
@@ -69,7 +69,7 @@
     "CamelAzureStorageDataLakeOperation": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": 
"org.apache.camel.component.azure.storage.datalake.DataLakeOperationsDefinition",
 "enum": [ "listFileSystem", "createFileSystem", "deleteFileSystem", 
"listPaths", "getFile", "downloadToFile", "downloadLink", "deleteFile", 
"appendToFile", "flushToFile", "uploadFromFile", "upload", 
"openQueryInputStream", "createFile", "delete [...]
     "CamelAzureStorageDataLakeFileSystemName": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the file system in azure data lake on which operation 
is to be performed. Please make sure that filesystem name is all lowercase.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILESYSTEM_NAME"
 },
     "CamelAzureStorageDataLakeDirectoryName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the directory in azure data lake on which operation is 
to be performed.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#DIRECTORY_NAME"
 },
-    "CamelAzureStorageDataLakeFileName": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the file in azure data lake on which operation is to be 
performed.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILE_NAME" 
},
+    "CamelAzureStorageDataLakeFileName": { "index": 5, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "(producer) Name of the file in azure data lake on which 
operation is to be performed. (consumer) Name of the file that was consumed.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILE_NAME" 
},
     "CamelAzureStorageDataLakeMetadata": { "index": 6, "kind": "header", 
"displayName": "", "group": "from both", "label": "from both", "required": 
false, "javaType": "Map<String, String>", "deprecated": false, "autowired": 
false, "secret": false, "description": "The metadata to associate with the 
file.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#METADATA" 
},
     "CamelAzureStorageDataLakePublicAccessType": { "index": 7, "kind": 
"header", "displayName": "", "group": "producer", "label": "producer", 
"required": false, "javaType": "PublicAccessType", "deprecated": false, 
"autowired": false, "secret": false, "description": "Defines options available 
to configure the behavior of a call to listFileSystemsSegment on a 
DataLakeServiceAsyncClient object.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#PUBLIC_ACC 
[...]
     "CamelAzureStorageDataLakeRawHttpHeaders": { "index": 8, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "HttpHeaders", "deprecated": false, "autowired": false, "secret": 
false, "description": "Non parsed http headers that can be used by the user.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#RAW_HTTP_HEADERS"
 },
diff --git 
a/components/camel-azure/camel-azure-storage-datalake/src/generated/resources/META-INF/org/apache/camel/component/azure/storage/datalake/azure-storage-datalake.json
 
b/components/camel-azure/camel-azure-storage-datalake/src/generated/resources/META-INF/org/apache/camel/component/azure/storage/datalake/azure-storage-datalake.json
index 5028cf8c96be..f05a6001791f 100644
--- 
a/components/camel-azure/camel-azure-storage-datalake/src/generated/resources/META-INF/org/apache/camel/component/azure/storage/datalake/azure-storage-datalake.json
+++ 
b/components/camel-azure/camel-azure-storage-datalake/src/generated/resources/META-INF/org/apache/camel/component/azure/storage/datalake/azure-storage-datalake.json
@@ -69,7 +69,7 @@
     "CamelAzureStorageDataLakeOperation": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": 
"org.apache.camel.component.azure.storage.datalake.DataLakeOperationsDefinition",
 "enum": [ "listFileSystem", "createFileSystem", "deleteFileSystem", 
"listPaths", "getFile", "downloadToFile", "downloadLink", "deleteFile", 
"appendToFile", "flushToFile", "uploadFromFile", "upload", 
"openQueryInputStream", "createFile", "delete [...]
     "CamelAzureStorageDataLakeFileSystemName": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the file system in azure data lake on which operation 
is to be performed. Please make sure that filesystem name is all lowercase.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILESYSTEM_NAME"
 },
     "CamelAzureStorageDataLakeDirectoryName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the directory in azure data lake on which operation is 
to be performed.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#DIRECTORY_NAME"
 },
-    "CamelAzureStorageDataLakeFileName": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of the file in azure data lake on which operation is to be 
performed.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILE_NAME" 
},
+    "CamelAzureStorageDataLakeFileName": { "index": 5, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "(producer) Name of the file in azure data lake on which 
operation is to be performed. (consumer) Name of the file that was consumed.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#FILE_NAME" 
},
     "CamelAzureStorageDataLakeMetadata": { "index": 6, "kind": "header", 
"displayName": "", "group": "from both", "label": "from both", "required": 
false, "javaType": "Map<String, String>", "deprecated": false, "autowired": 
false, "secret": false, "description": "The metadata to associate with the 
file.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#METADATA" 
},
     "CamelAzureStorageDataLakePublicAccessType": { "index": 7, "kind": 
"header", "displayName": "", "group": "producer", "label": "producer", 
"required": false, "javaType": "PublicAccessType", "deprecated": false, 
"autowired": false, "secret": false, "description": "Defines options available 
to configure the behavior of a call to listFileSystemsSegment on a 
DataLakeServiceAsyncClient object.", "constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#PUBLIC_ACC 
[...]
     "CamelAzureStorageDataLakeRawHttpHeaders": { "index": 8, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "HttpHeaders", "deprecated": false, "autowired": false, "secret": 
false, "description": "Non parsed http headers that can be used by the user.", 
"constantName": 
"org.apache.camel.component.azure.storage.datalake.DataLakeConstants#RAW_HTTP_HEADERS"
 },
diff --git 
a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeConstants.java
 
b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeConstants.java
index 070fb0cbec5d..c149231293fd 100644
--- 
a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeConstants.java
+++ 
b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeConstants.java
@@ -40,7 +40,8 @@ public final class DataLakeConstants {
               description = "Name of the directory in azure data lake on which 
operation is to be performed.",
               javaType = "String")
     public static final String DIRECTORY_NAME = HEADER_PREFIX + 
"DirectoryName";
-    @Metadata(label = "producer", description = "Name of the file in azure 
data lake on which operation is to be performed.",
+    @Metadata(description = "(producer) Name of the file in azure data lake on 
which operation is to be performed."
+                            + " (consumer) Name of the file that was 
consumed.",
               javaType = "String")
     public static final String FILE_NAME = HEADER_PREFIX + "FileName";
     @Metadata(label = "from both", description = "The metadata to associate 
with the file.",
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataLakeEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataLakeEndpointBuilderFactory.java
index 9a628a79bcea..1f4c7521c8be 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataLakeEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DataLakeEndpointBuilderFactory.java
@@ -3252,12 +3252,12 @@ public interface DataLakeEndpointBuilderFactory {
             return "CamelAzureStorageDataLakeDirectoryName";
         }
         /**
-         * Name of the file in azure data lake on which operation is to be
-         * performed.
+         * (producer) Name of the file in azure data lake on which operation is
+         * to be performed. (consumer) Name of the file that was consumed.
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: producer
+         * Group: common
          * 
          * @return the name of the header {@code AzureStorageDataLakeFileName}.
          */

Reply via email to