cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20135] New: - reader decodes string, doesn't reencode for use in url
Date Wed, 21 May 2003 23:59:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20135>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20135

reader decodes string, doesn't reencode for use in url

           Summary: reader decodes string, doesn't reencode for use in url
           Product: Cocoon 2
           Version: 2.1M1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: sully@minitransat.com


apologies if this has been fixed recently, I'm unable to build recent releases,
so this may only be applicable to early 2.1 (from at least 3 months ago).

an example (very simplified)
- the url I'm accessing is: http://localhost/strings/Hello%20World
- url that I want to be read is: http://domain.com/Hello%20World
- url that is being read is: http://domain.com/Hello World
- if I make the url I'm accessing something like
http://localhost/strings/Hello|World it works perfectly

the same happens if it is encoded with + signs instead of %20D

from what I can gather (checking output of the remote script I'm trying to
call), you send a string to cocoon which is url encoded, it gets decoded and
then processed according to the pipeline, if it is a reader then it doesn't
re-encode the string, it simply places the string into the reader source, this
is correct (I think) for files in a filesystem, however it's no good when it
comes to urls.

my solution has been to do replaces of spaces etc. in my xsl, though it'd be
much more elegant if I didn't have to.

Mime
View raw message