[jcifs] URL Decoding Enabled

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Tue Dec 31 11:21:14 EST 2002


I still have not enabled URL decoding of '%' escapes in 0.7. I don't recall if I simply forgot about this or was waiting for things to stablize before throwing in another wrench but here it comes. Did
we conclude that it was necessary to decode the *entire* URL? Natrually we would like to have a URL with an '@' in the path without being required to unconditionally encode it. Normally this sort of
thing is handled by the client application (like a web browser) but because of how the SMB URL is integrated into the library some decoding is necessary.

I have enabled decoding of '@' in the user info component "dom;user:pass" but that's it. There is no decoding of server or path components nor is '+' decoded as a space like:

    smb://dom;us%61r:p%40ss@server/share/p@th/to/Some File.pdf

Below is some sample examples/TestSmbURL output. Does this agree with everyone?






More information about the jcifs mailing list