commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manco <megust...@yahoo.com>
Subject Re: [VFS] Problems resolving smb uri - '%' char in password
Date Fri, 14 Oct 2005 14:05:08 GMT
Mario,

I have been using VFS for about 6mo, ie before it
came out of the sandbox.

Recently my user changed their password and now
includes the 
'%' char. I have tried everything I can think of
including  '%25' but it still fails. 

I see from this previous subject that this was an 
issue a while back.


1. If there is a way to get around the % char what is
   it?
2. Is there a set of Special Chars that Can't be used?

Thanks,
Manco

URI:
smb://company.com;jimmy:abc%rpf!@machinename.company.com:21/Samba/Reports
password: <abc%rpf!>
username: <jimmy>

I used the Shell program that came with an older
version of vfs and linked to the latest nightly build,
got the same result as the VFS version we were using.

Failure output:
######################
with attempted escape  - substitute % with %25, 
                         '!' worked with %21 or with
out the escape
######################
> ls
smb://company.com;jimmy:abc%25rpf!@machinename.company.com:21/Samba/Reports
Command failed:
org.apache.commons.vfs.FileSystemException: Could not
determine the type of file
"smb://company.com;jimmy:abc%25rpf!@machinename.company.com:21/Samba/Reports".
        at
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1233)
        at
org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:401)
        at
com.company.util.vfs.vfstest.Shell.ls(Shell.java:381)
        at
com.company.util.vfs.vfstest.Shell.handleCommand(Shell.java:134)
        at
com.company.util.vfs.vfstest.Shell.go(Shell.java:96)
        at
com.company.util.vfs.vfstest.Shell.main(Shell.java:58)
Caused by: jcifs.smb.SmbAuthException: Access denied
        at
jcifs.smb.SmbTransport.send(SmbTransport.java:751)
        at
jcifs.smb.SmbSession.sessionSetup(SmbSession.java:140)
        at
jcifs.smb.SmbSession.send(SmbSession.java:103)
        at
jcifs.smb.SmbTree.treeConnect(SmbTree.java:132)
        at jcifs.smb.SmbFile.connect(SmbFile.java:674)
        at
jcifs.smb.SmbFile.connect0(SmbFile.java:644)
        at
jcifs.smb.SmbFile.queryPath(SmbFile.java:1033)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1116)
        at
jcifs.smb.SmbFile.isDirectory(SmbFile.java:1187)
        at
org.apache.commons.vfs.provider.smb.SmbFileObject.createSmbFile(SmbFileObject.java:84)
        at
org.apache.commons.vfs.provider.smb.SmbFileObject.doAttach(SmbFileObject.java:64)
        at
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1219)
        ... 5 more
> quit


######################
without attempted escape
######################
> ls
smb://company.com;jimmy:abc%rpf!@machinename.company.com:21/Samba/Reports
Command failed:
org.apache.commons.vfs.FileSystemException: Invalid
URI escape sequence "%rp".
        at
org.apache.commons.vfs.provider.UriParser.decode(UriParser.java:320)
        at
org.apache.commons.vfs.provider.UriParser.decode(UriParser.java:289)
        at
org.apache.commons.vfs.provider.UriParser.checkUriEncoding(UriParser.java:412)
        at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:509)
        at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:488)
        at
com.company.util.vfs.vfstest.Shell.ls(Shell.java:374)
        at
com.company.util.vfs.vfstest.Shell.handleCommand(Shell.java:134)
        at
com.company.util.vfs.vfstest.Shell.go(Shell.java:96)
        at
com.company.util.vfs.vfstest.Shell.main(Shell.java:58)

--- Mario Ivankovits <mario@ops.co.at> wrote:

> Mark Shifman wrote:
> > I did have a %2f in my password.
> > I will try tomorrow the new one tomorrow morning.
> Oh, I made a small mistake when processsing the
> domain name.
> Its already fixed, but until the next nightly you
> should add the domain 
> name to your url e.g.
> 
> smb://HOME\user:pass@host/share
> 
> ---
> Mario
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message