[jcifs] @ character in filenames

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Thu Sep 12 12:02:53 EST 2002

Yup. Looks like your right. This should not happen. I've been dodging a few other
little URL issues. This will have to be fixed pronto. Unfortunately I'm a little busy
with the real job right now. When I have a chance, I'll write a little state machine
parser. That will solve all URL problems in one sweep.

> -----Original Message-----
> From:	Christian Fraenkel [SMTP:c.fraenkel at gmx.net]
> Sent:	Wednesday, September 11, 2002 9:53 PM
> Cc:	jcifs at samba.org
> Subject:	Re: [jcifs] @ character in filenames
> I looked a bit at SmbUrl.java, and it looks like it parses this String wrong:
> at line 117 it looks for an @, and takes it as the delimeter to the host part. This works fine if there is an user:pass part, but if there isn't one it can take an @ which might occur in the file
> part. The only way I see to fix this (without lots of work at the parser) is to encode all @'s in the filename part
> Christian
> -- 
> public key: http://www.uni-ulm.de/~s_cfraen/gpg.publickey

More information about the jcifs mailing list