[jcifs] Oh, those wacky plusses.
Rob Wygand
rob at wygand.com
Fri Jan 4 10:38:20 EST 2002
URLDecode the canonical path before invoking SmbURL.parseSmbURL? That
doesn't seem right to me.... Rather, I think I'd need to URLEncode the
biths between the slashes so that when SmbUrl parses it, it would
properly decode from %xx notation into a +.
Am I missing something?
rjw
Allen, Michael B (RSCH) wrote:
> 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