[jcifs] Oh, those wacky plusses.
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Fri Jan 4 10:32:28 EST 2002
I think this is simple enough to fix. We just need to URLdecode the canonical
path before running it through the SmbURL parsing routine.
Keep'em coming,
Mike
> -----Original Message-----
> From: Rob Wygand [SMTP:rob at filefish.com]
> Sent: Thursday, January 03, 2002 6:16 PM
> To: jcifs at samba.org
> Subject: [jcifs] Oh, those wacky plusses.
>
> Mike,
>
> Discovered an odd one. Generally, creating SmbFile's from a string that
> contains plusses, works. For example, if I do:
>
> x = new SmbFile ("smb://server/share/HR+Recruiting");
>
> I can do anything with that SmbFile... write to it's input stream, call
> mkdir on it, whatever. but if I do this:
>
> x = new SmbFile ("smb://server/share/HR+Recruiting");
> y = new smbFile (x, "foo");
> y.mkdir();
>
> The last fails exceptionally, claiming that the path is invalid. When I
> print out y.getCanonicalPath(), the + has been URLDecoded() away.
>
> This isn't be design is it? It works in one case and not the other...
>
> rjw
More information about the jcifs
mailing list