Re: file name is not correct

[email protected]
Newsgroups gmane.network.samba.java
Message-ID <adca1f30-0bfd-3200-92d3-f52864981b54@api104>
Hi all,

I understood this problem.

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

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

----
Dora.

> > 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.