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

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


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new 7bac671dbe8 CAMEL-21307: provide the name via header (#15815)
7bac671dbe8 is described below

commit 7bac671dbe8720ddd9b941d80c0b856ede73474a
Author: Otavio Rodolfo Piske <orpi...@users.noreply.github.com>
AuthorDate: Thu Oct 3 06:56:59 2024 +0200

    CAMEL-21307: provide the name via header (#15815)
---
 .../src/main/java/org/apache/camel/component/smb/SmbConsumer.java        | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
 
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
index 6eecc1ba21e..b5445193a14 100644
--- 
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
+++ 
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
@@ -90,6 +90,7 @@ public class SmbConsumer extends ScheduledPollConsumer {
                 repository.add(fullFilePath);
                 exchange.getMessage().setHeader(SmbConstants.SMB_FILE_PATH, 
file.getPath());
                 exchange.getMessage().setHeader(SmbConstants.SMB_UNC_PATH, 
file.getUncPath());
+                exchange.getMessage().setHeader(Exchange.FILE_NAME, 
file.getFileInformation().getNameInformation().toString());
                 exchange.getMessage().setBody(file);
                 try {
                     getProcessor().process(exchange);

Reply via email to