[jcifs] SMB URL

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Tue Jul 9 13:32:32 EST 2002

> -----Original Message-----
> From:	Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> That leaves us with names only.  What I've done in the latest draft is
> disallow the dot character in a NetBIOS name (just the NetBIOS name part,
> not the scope).  That means that in the rare case that a NetBIOS name 
> contains a dot, it would have to be escaped.  So, given something like:
>   smb://foo.bar.edu/
> The name could only be interpreted in two ways:
> 1) It's a DNS name.
> 2) It's the NetBIOS name "FOO" in scope "BAR.EDU".
> Syntax-wise, those would be the only options.  Consider also:
>   smb://foo/
> This is really the same situation.  The string "foo" is either an
> unqualified DNS name (a host name) or a NetBIOS name.  That simplifies the
> code quite a bit.  If you really wanted the NetBIOS name "FOO.BAR" in 
> scope "EDU" you would write:
>   smb://foo%2Ebar.edu/
> How do people feel about that solution?
	If it works in practice then I'm ok with this but I would have to write some code and
	try it out first. There might be issues with URL decoding/encoding. Remember when
	the SMB URL handling in jCIFS was messed up and we kept going around in
	circles decoding and encoding the URLs as they were passed in, out, and internally?


More information about the jcifs mailing list