You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Uwe Gerger <Uw...@bmw.de> on 2003/07/03 11:55:31 UTC

RequestGenerator: Problem with % character

Hello,
I'm using Cocoon 2.0.4 and I have the following problem with the request
generator. After inserting the value "my%sign" and "my?char" in two
input field and after starting the request with the following link

http://localhost:8080/xls_speed/speed-showquery.xml?parameter=my%sign&otherparameter=my?char


the output from the request generator looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<request target="/xls_speed/speed-showquery.xml" source="" xmlns="
http://xml.apache.org/cocoon/requestgenerator/2.0">

  <requestHeaders>
    <header name="accept">image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, */*</header>
    <header name="accept-language">de</header>
    <header name="accept-encoding">gzip, deflate</header>
    <header name="user-agent">Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)</header>
    <header name="host">localhost:8080</header>
    <header name="connection">Keep-Alive</header>
  </requestHeaders>

  <requestParameters>
    <parameter name="otherparameter">
      <value>my?char</value>
    </parameter>
  </requestParameters>

  <configurationParameters>
  </configurationParameters>

</request>

The first parameter wich contains the % character is lost. Is this a
known bug? Or what can be the reason?

Thanks in advance
	Uwe

-- 
Uwe Gerger                                _/_/_/   _/    _/  _/    _/
BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
mailto:Uwe.Gerger@bmw.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: RequestGenerator: Problem with % character

Posted by Uwe Gerger <Uw...@bmw.de>.
I'm submitting the parameters from a form! I thought that the browser
will enconde the % char. and the report generator will decode it
properly. But as I see, it does not work!

Thanks
	Uwe

uv@upaya.co.uk schrieb:
> 
> Uwe,
> 
> Bear in mind that % has a meaning in a URL - it is used to encode characters, so a
> space can be represented as %20. That'll be part of the reason why it isn't working.
> Are you submitting from a form, or just typing in the URL?
> 
> Regards, Upayavira
> 
> On 3 Jul 2003 at 11:55, Uwe Gerger wrote:
> 
> > Hello,
> > I'm using Cocoon 2.0.4 and I have the following problem with the
> > request generator. After inserting the value "my%sign" and "my?char"
> > in two input field and after starting the request with the following
> > link
> >
> > http://localhost:8080/xls_speed/speed-showquery.xml?parameter=my%sign&
> > otherparameter=my?char
> >
> >
> > the output from the request generator looks like this:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <request target="/xls_speed/speed-showquery.xml" source="" xmlns="
> > http://xml.apache.org/cocoon/requestgenerator/2.0">
> >
> >   <requestHeaders>
> >     <header name="accept">image/gif, image/x-xbitmap, image/jpeg,
> > image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> > application/msword, */*</header>
> >     <header name="accept-language">de</header>
> >     <header name="accept-encoding">gzip, deflate</header>
> >     <header name="user-agent">Mozilla/4.0 (compatible; MSIE 6.0;
> >     Windows
> > NT 5.1; Q312461)</header>
> >     <header name="host">localhost:8080</header>
> >     <header name="connection">Keep-Alive</header>
> >   </requestHeaders>
> >
> >   <requestParameters>
> >     <parameter name="otherparameter">
> >       <value>my?char</value>
> >     </parameter>
> >   </requestParameters>
> >
> >   <configurationParameters>
> >   </configurationParameters>
> >
> > </request>
> >
> > The first parameter wich contains the % character is lost. Is this a
> > known bug? Or what can be the reason?
> >
> > Thanks in advance
> >  Uwe
> >
> > --
> > Uwe Gerger                                _/_/_/   _/    _/  _/    _/
> > BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
> > 80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
> > Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
> > Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
> > mailto:Uwe.Gerger@bmw.de
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For
> > additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
Uwe Gerger                                _/_/_/   _/    _/  _/    _/
BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
mailto:Uwe.Gerger@bmw.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: RequestGenerator: Problem with % character

Posted by Upayavira <uv...@upaya.co.uk>.
Uwe,

Bear in mind that % has a meaning in a URL - it is used to encode characters, so a 
space can be represented as %20. That'll be part of the reason why it isn't working. 
Are you submitting from a form, or just typing in the URL?

Regards, Upayavira

On 3 Jul 2003 at 11:55, Uwe Gerger wrote:

> Hello,
> I'm using Cocoon 2.0.4 and I have the following problem with the
> request generator. After inserting the value "my%sign" and "my?char"
> in two input field and after starting the request with the following
> link
> 
> http://localhost:8080/xls_speed/speed-showquery.xml?parameter=my%sign&
> otherparameter=my?char
> 
> 
> the output from the request generator looks like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <request target="/xls_speed/speed-showquery.xml" source="" xmlns="
> http://xml.apache.org/cocoon/requestgenerator/2.0">
> 
>   <requestHeaders>
>     <header name="accept">image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, */*</header>
>     <header name="accept-language">de</header>
>     <header name="accept-encoding">gzip, deflate</header>
>     <header name="user-agent">Mozilla/4.0 (compatible; MSIE 6.0;
>     Windows
> NT 5.1; Q312461)</header>
>     <header name="host">localhost:8080</header>
>     <header name="connection">Keep-Alive</header>
>   </requestHeaders>
> 
>   <requestParameters>
>     <parameter name="otherparameter">
>       <value>my?char</value>
>     </parameter>
>   </requestParameters>
> 
>   <configurationParameters>
>   </configurationParameters>
> 
> </request>
> 
> The first parameter wich contains the % character is lost. Is this a
> known bug? Or what can be the reason?
> 
> Thanks in advance
>  Uwe
> 
> -- 
> Uwe Gerger                                _/_/_/   _/    _/  _/    _/
> BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
> 80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
> Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
> Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
> mailto:Uwe.Gerger@bmw.de
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For
> additional commands, e-mail: users-help@cocoon.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org