Santiago,

We also experienced problem with URIEncoder. The
way the invalid charaters are being translated
aparently is not kosha with Linux (I imagine unix of 
most every flavors), namely replacing these characters
with:

 "#" + (int)source.charAt(0) + ";";

confuses the hell out of file system, since when
jetspeed asks for the file with these special
characters, it chops everything beyond "#".

For example, a portlet corresponding to
http://p.moreover.com/cgi-local/page?index_coolsites+rss

This translates to a file name of
http_p.moreover.com_cgi-local_page#69;index__coolsites#43;rss
(the int value
of char "#" may be off). When this filename
is passed to the java file class to load, it throws
a file not found type of exception. Looking closely
at the stack trace, some native code is trying to
load http_p.moreover.com_cgi-local_page (confirming
the chopping behavior).

I have experiementd with "%"+ (int) char, but found
IBM JDK1.3 would fail. Currently, I am using "@"
instead, so far both Javasoft JDK1.2.2 and IBM JDK1.3
are pretty happy. Of course, I have no idea about
how other platforms would treat "@", but for us
Linux (with bash) is the only thing we care about.


I have no experiece with "&" yet, but it is definitely
a special characters in Unix world -- keep in mind
there are many many types of shells people
may be using, each may treat the special characters
with varying tolerance.

Sorry for the waste of bandwidth,

Alex
--- Santiago Gala <[EMAIL PROTECTED]> wrote:
> 
> 
> Paul Hammant wrote:
> 
> > "&" needs to be added to the list
> INVALID_CHARACTERS static var.  It is
> > used in URLs to separate params on the query
> string (though I guess
> > everyone knew that).
> >
> 
> "&" is correct both in Windows and Unix filenames. I
> don't know about
> MacIntosh, but the list is not for encoding URL
> parameters, but for
> encoding whole URLs to be used as filenames. I
> changed the last error
> found, namely "?" is not correct in Windows
> filenames.
> 
> >
> > I would have changed it in CVS myself, but ant
> fails to build at the
> > moment......
> >
> 
> I don't think it is an error.
> 
> >
> > - Paul H
> >
> > --
> >
>
--------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:       
> [EMAIL PROTECTED]
> > To unsubscribe:     
> [EMAIL PROTECTED]
> > Archives and Other: 
> <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]
> 
> 
> 
> --
>
--------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:       
> [EMAIL PROTECTED]
> To unsubscribe:     
> [EMAIL PROTECTED]
> Archives and Other: 
> <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to