[jcifs] SmbURL's with @'s in the path portion

rjw rob at wygand.com
Thu Nov 15 12:51:37 EST 2001


Mike,

I added some encoding to my code such that my URL's now look like:

mb://rob:password@hostname/sharename/foo/Mom+%40+Cannes

However, now when I create an SmbFile from this URL, canRead(), 
canWrite(), isDirectory() and isFile() all return false. This is not the 
behaviour I expected.. namely, isDirectory() and isFile should still 
return properly.

Is it just that under the covers, because I am encoding first, something 
wacky is goin' on?\

rjw


Allen, Michael B (RSCH) wrote:

> In accordance with the SMB URL IETF draft all characters not of the defined set suitable for
> use with URLs (I beleive the HTTP spec was referenced here) must be encoded with the
> standard %code encoding.


-- 
"They that can give up essential liberty to obtain a little
  temporary safety deserve neither liberty nor safety."





More information about the jcifs mailing list