Hello Daria,

thanks for your help.

I also came across url-encode as a workaround.

Nevertheless, I'm still suspecting some incomplete emulation / proxy request 
implementation being used
when execution calls from flow script or from sitemap src URLs.

In the end such incompatibility will force using different pipelines (or et 
least pipeline fragments) for handling otherwise identical
calls from external (aka browser) and from internal (aka flowscript or sitemap 
sources)

I do hope, I will find a large enough time slot for investigating a bit into 
this topic to identify the code location causing this
differing behaviour.

Rainer

dkropotova schrieb:
> Hello Rainer,
> 
> Thanks for replying on my thread 
> http://www.nabble.com/Accesing-url-params-in-flow-using-servlet%3A-protocol-Cocoon-2.2-td16092939.html#a16092939
> Accesing url params in flow using servlet: protocol Cocoon 2.2 
> 
> I did have a look at RawRequestParameterModule, but it doesn't work...it
> doesn't keep URL encoding and returns spaces instead.
> 
> I did try an alternative/hack which seems to work. Instead of <map:part
> src="servlet:/some_pipeline/{1}/{2}?q={raw-request-param:q}"/> I have used
> <map:part
> src="servlet:/some_pipeline/{1}/{2}?q={url-encode:{request-param:q}}"/>
> 
> It seem to work. Hope that helps.
> Daria
> 
> 
> 
> Rainer Pruy wrote:
>> Hallo,
>> again hitting real world...
>>
>> I'trying to get some request parameters to their final destination (a
>> local generator)
>> however I always end up with decoded ones.
>>
>> The whole topic starts out from a js function handling a form and at some
>> point is calling (showing the effective resulting string here)
>>
>>          cocoon.redirectTo("search?modeinfo=a+b", {});
>>
>> (The '+' resulting from using URLEncode("a b"))
>>
>> This redirect call ends up with a pipeline resulting in the following
>> generator call:
>>
>>                <map:generate
>> src="servlet:/page/research/{1}?modeinfo={raw-request-param:modeinfo}"
>> type="jx"/>
>>
>> Rainer
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 

-- 
Rainer Pruy
Geschäftsführer

Acrys Consult GmbH & Co. KG
Untermainkai 29-30, D-60329 Frankfurt
Tel: +49-69-244506-0 - Fax: +49-69-244506-50
Web: http://www.acrys.com -  Email: [EMAIL PROTECTED]
Handelsregister: Frankfurt am Main, HRA 31151

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to