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

Otavio Rodolfo Piske updated CAMEL-21264:
-----------------------------------------
    Description: 
The component leaks implementation details by letting users handle smbj file 
types. Our code already provides a good way to avoid that and we should use it. 


  was:
The consumer is recreating the [connection for every 
poll|https://github.com/apache/camel/blob/camel-4.8.0/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java#L106-L116].
 This causes problems because  consumers cannot read the files after the 
connection has been closed.




> camel-smb: should use WrappedFile instead of leaking implementation details
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-21264
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21264
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smb
>    Affects Versions: 4.8.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 4.8.1, 4.9.0
>
>
> The component leaks implementation details by letting users handle smbj file 
> types. Our code already provides a good way to avoid that and we should use 
> it. 



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

Reply via email to