[ 
https://issues.apache.org/jira/browse/CAMEL-20823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-20823:
--------------------------------
    Fix Version/s: 4.7.0

> camel-smb component polling doesn't account for directories
> -----------------------------------------------------------
>
>                 Key: CAMEL-20823
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20823
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Thomas Cunningham
>            Assignee: Thomas Cunningham
>            Priority: Major
>             Fix For: 4.7.0
>
>
> Getting the following error polling an SMB share that contains directories - 
> I think we can do a check for folders and filter them out.
> {code:java}
> 2024-05-31T14:11:47.357-04:00  WARN 70410 --- [68.1.35:445/src] 
> o.a.camel.component.smb.SmbConsumer      : Failed polling endpoint: 
> smb://192.168.1.35:445/src?password=xxxxxx&username=xxxxxx. Will try again at 
> next poll. Caused by: [com.hierynomus.mssmb2.SMBApiException - 
> STATUS_FILE_IS_A_DIRECTORY (0xc00000ba): Create failed for 
> \\192.168.1.35\src\System Volume Information]
> com.hierynomus.mssmb2.SMBApiException: STATUS_FILE_IS_A_DIRECTORY 
> (0xc00000ba): Create failed for \\192.168.1.35\src\System Volume Information  
>       at com.hierynomus.smbj.share.Share.receive(Share.java:380) 
> ~[smbj-0.13.0.jar:0.13.0]    at 
> com.hierynomus.smbj.share.Share.sendReceive(Share.java:359) 
> ~[smbj-0.13.0.jar:0.13.0]        at 
> com.hierynomus.smbj.share.Share.createFile(Share.java:156) 
> ~[smbj-0.13.0.jar:0.13.0] at 
> com.hierynomus.smbj.share.DiskShare.createFileAndResolve(DiskShare.java:75) 
> ~[smbj-0.13.0.jar:0.13.0]        at 
> com.hierynomus.smbj.share.DiskShare.access$100(DiskShare.java:55) 
> ~[smbj-0.13.0.jar:0.13.0]  at 
> com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:109) 
> ~[smbj-0.13.0.jar:0.13.0]    at 
> com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:105) 
> ~[smbj-0.13.0.jar:0.13.0]    at 
> com.hierynomus.smbj.paths.PathResolver$1.resolve(PathResolver.java:32) 
> ~[smbj-0.13.0.jar:0.13.0]     at 
> com.hierynomus.smbj.paths.SymlinkPathResolver.resolve(SymlinkPathResolver.java:62)
>  ~[smbj-0.13.0.jar:0.13.0] at 
> com.hierynomus.smbj.share.DiskShare.resolveAndCreateFile(DiskShare.java:105) 
> ~[smbj-0.13.0.jar:0.13.0]       at 
> com.hierynomus.smbj.share.DiskShare.open(DiskShare.java:65) 
> ~[smbj-0.13.0.jar:0.13.0]        at 
> com.hierynomus.smbj.share.DiskShare.openFile(DiskShare.java:169) 
> ~[smbj-0.13.0.jar:0.13.0]   at 
> org.apache.camel.component.smb.SmbConsumer.poll(SmbConsumer.java:75) 
> ~[camel-smb-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT]  at 
> org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:205)
>  ~[camel-support-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT]      at 
> org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:119)
>  ~[camel-support-4.7.0-SNAPSHOT.jar:4.7.0-SNAPSHOT]        at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
>  ~[na:na]   at 
> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) 
> ~[na:na]  at 
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
>  ~[na:na]    at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
>  ~[na:na]   at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
>  ~[na:na]   at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na] 
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to