Hi Chaminda,

Config level issues I can think of are as follows,
Have you encrypted "username:password" as a whole and provided in [1] or
separately encrypted them and added as colon separated value?
Have you provided same configs for decryption in axis2.xml
vfsTransportListner config? (For example if you use bouncycastle(BC) when
encrypting, then need to provide that for decryption as well)
Have you used a key with larger keystrength for encryption? (for example
2048 key strength). If so there was a issue with that and already fixed
with [2]


[1] - {wso2:vault-decrypt('encryptedValue')}
[2] - https://wso2.org/jira/browse/ESBJAVA-4770

Thanks,

On Fri, Jul 22, 2016 at 2:59 PM, Chaminda Jayawardena <chami...@wso2.com>
wrote:

> Hi,
>
> I followed the steps in [1] and getting below exception[2] when proxy
> service is invoked.
> I manually encrypted the username:password using ciphertool.sh and used
> encrypted value in the proxy service as below. And also I could success
> when the same user:pass combination is not encrypted.
> Anything missed here or just a bug ?
>
> *<parameter
> name="transport.vfs.FileURI">smb://{wso2:vault-decrypt('encrypted_user:pass_from_ciphertool')}@localhost/share/test1</parameter>*
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4679
> [2]
> [2016-07-22 14:48:11,221] ERROR - VFSTransportListener Error checking for
> existence and readability : smb://@localhost/share/test1
> org.apache.commons.vfs2.FileSystemException: Could not determine the type
> of file "smb://localhost/share/test1".
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1523)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:490)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.exists(AbstractFileObject.java:478)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:294)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:188)
> at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:134)
> at
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: jcifs.smb.SmbAuthException: Logon failure: unknown user name or
> bad password.
> at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:406)
> at jcifs.smb.SmbSession.send(SmbSession.java:218)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
> at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
> at jcifs.smb.SmbFile.connect(SmbFile.java:954)
> at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
> at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335)
> at jcifs.smb.SmbFile.exists(SmbFile.java:1417)
> at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1490)
> at
> org.apache.commons.vfs2.provider.smb.SmbFileObject.createSmbFile(SmbFileObject.java:119)
> at
> org.apache.commons.vfs2.provider.smb.SmbFileObject.doAttach(SmbFileObject.java:71)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1506)
> ... 10 more
>
>
>
>
> --
> Thanks & Regards
>
> *Chaminda Jayawardena*
> Senior Software Engineer - QA
> WSO2 Inc. - http://wso2.com
> +94-77-7725234
>



-- 
Rajith Vitharana

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to