Tomas Veskrna  created CAMEL-21984:
--------------------------------------

             Summary: camel-smb File type is wrong in documentation 
                 Key: CAMEL-21984
                 URL: https://issues.apache.org/jira/browse/CAMEL-21984
             Project: Camel
          Issue Type: Bug
          Components: camel-smb
    Affects Versions: 4.10.3
            Reporter: Tomas Veskrna 


In the doc is written that filetype is com.hierynomus.smbj.share.File
[https://github.com/apache/camel/blob/camel-4.10.x/components/camel-smb/src/main/docs/smb-component.adoc?plain=1#L103]

There were changes about GenericFile and 
[SmbFile|https://github.com/apache/camel/blob/camel-4.10.x/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbFile.java]
 class was created.
This code return null:
{code:java}
exchange.getMessage().getBody(com.hierynomus.smbj.share.File.class);
{code}
Type of body when I try this
{code:java}
exchange.getMessage().getBody().getClass().getName()
{code}
resolves as *org/apache/camel/component/smb/SmbFile.java*

I think it should be changed in the Documentation. That File is instance of 
_org.apache.camel.component.smb.SmbFile_



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

Reply via email to