[jcifs] file name is not correct

namadoray_curry at mail.goo.ne.jp namadoray_curry at mail.goo.ne.jp
Mon Aug 15 19:15:01 MDT 2011

Hi all,

I understood this problem.

Sebastian wrote: 
> So the attached patch fix it for me.

I tested this patch.
It's OK. Thanks.


> > I believe this is occurring because of the java.net.URL class which is
> > used internally to manipulate URLs. So it cannot handle some special
> > characters in special instances. Meaning the java.net.URL class is
> > trimming leading spaces from the filename. Unfortunately unless we
> > re-write JCIFS to not use the java.net.URL class, there is not a whole
> > lot we can do about this.
> >
> > Mike
> >
> Hi,
> Because the URL is following the recommendations in RFC2396 it tolerates 
> spaces in urls and removes them. If i understand the RFC correct it is 
> to make it easier for people to type in urls by hand.
> Prefixing "URL:" solves it in at least for the jdk interpretation of 
> rfc2396.
> So the attached patch fix it for me.
> -- Sebastian

More information about the jCIFS mailing list