[jcifs] @ character in filenames

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Thu Sep 12 11:44:24 EST 2002

In older versions this used to be true. If you're using 0.6.5 this is not true although
an '@' in the password does need to be encoded with '%' escape '%25'. If
you are finding that '@' in the path is still causing an issue, I'm afraid that is a
problem with the URL class. You will have to URL encode those regardless of
where they are which would be unfortunate.

> -----Original Message-----
> From:	Christian Fraenkel [SMTP:c.fraenkel at gmx.net]
> Sent:	Wednesday, September 11, 2002 9:40 PM
> To:	jcifs at samba.org
> Subject:	[jcifs] @ character in filenames
> Well, I just found another bug:
> SmbFile.list() returns files with the @ char in the path. When I do a toURL() on such a file i get a java.net.UnknownHostException. (the url string isn't parsed correctly). Shouldn't characters like
> @ be url encoded in the filename part of an url?
> Christian
> -- 
> public key: http://www.uni-ulm.de/~s_cfraen/gpg.publickey

More information about the jcifs mailing list