[jcifs] jcifs.smb.Handler turns "smb://" into "smb:////" ?

Michael B Allen ioplex at gmail.com
Fri Nov 12 15:53:06 MST 2010

Hi David,

I actually don't know why that is. But if I had to guess I would say
it has something to do with something required by the java.net.URL

But getPath should probably not return smb://// so if that's what
you're seeing, please post a code fragment that you think should
produce that behavior and I'll at least add it to the TODO list for
further investigation.


Michael B Allen
Java Active Directory Integration

On Fri, Nov 12, 2010 at 5:28 PM, David Kaelbling
<dkaelbling at blackducksoftware.com> wrote:
> Hi again,
> Okay, now I'm just lost :-P
> I kind of expected that getPath() for SmbFile("smb://") would return
> "smb://".  But in 1.3.15 jcifs.smb.Handler.parseURL() quite deliberately
> turns "smb://" into "smb:////" around line 44.  Is this some subtlety of
> the URL spec?  My brain hurts :-(
>   - David
> --
> David Kaelbling
> Senior Software Engineer
> Black Duck Software, Inc.
> dkaelbling at blackducksoftware.com
> T +1.781.810.2041
> F +1.781.891.5145
> http://www.blackducksoftware.com

More information about the jCIFS mailing list