[jcifs] Re: SMB URL encoding/decoding
Michael B Allen
mballen at erols.com
Sun Feb 24 13:37:44 EST 2002
On Sun, 24 Feb 2002 02:52:09 +0100
James Nord <teilo at teilo.net> wrote:
> by the way,
> |the example on |http://jcifs.samba.org/src/docs/api/jcifs/smb/SmbFile.html
> - A relativly sophisticated example that references a file
> |msmith1|'s desktop as user |Administrator|.
> Is this not illegal according to the draft?
I don't think you HAVE to encode everything. Its a good idea and a
necessity to ensure there is no ambiguity. In practice jCIFS does not
decode anything after the authentication creadentials because requiring
a user to URL encode their password is just going a little too far I
think. And if you decode it at all, you know have to require encoding
'+' and '%' and yada yada yada. So we search in from the end for '@'
and don't encode/decode anything before the server.
More information about the jcifs