[jcifs] Re: Strange things with % in password

Michael B Allen mba2000 at ioplex.com
Tue Sep 5 19:20:13 GMT 2006


Yeah, these are coming from within java.net.URL. We have no control over
those packages.

But you should never put passwords in URLs anyway. Use
NtlmPasswordAuthentication objs to hold credentials.

On Tue, 5 Sep 2006 15:09:28 +0000 (UTC)
Roger <rthomas at stone-ware.com> wrote:

> With the password set to %()
> 
> Call #1 stacktrace...
> 
> jcifs.smb.SmbException: smb://administrator:%25%28%29@10.1.1.10
> java.net.MalformedURLException: For input string: "()"
> 	at java.net.URL.(URL.java:571)
> 	at java.net.URL.(URL.java:434)
> 	at jcifs.smb.SmbFile.(SmbFile.java:614)
> 
> Call #2 stacktrace...
> 
> java.net.MalformedURLException: For input string: "()"
> 	at java.net.URL.(URL.java:571)
> 	at jcifs.smb.SmbFile.(SmbFile.java:477)
> 	at org.apache.jsp.test.c2_jsp._jspService(c2_jsp.java:58)

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list