You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Aron Shamash <Ar...@dna.co.uk> on 2006/02/28 13:00:47 UTC
Need an alternative to cocoon.redirectTo()
Hi
I have a situation whereby I may need to change all uses of
cocoon.redirectTo() in my flowscript to something which does not throw a
302 message.
We have various instances of redirectTo() in the flow including the need
to pass values on the querystring eg:
cocoon.redirectTo("2.3.html?view=true");
The background :
* The client is behind a Proxy server and there is a known bug in
IE with SP2 in an SSL environment whereby for any error messages under
512 bytes, IE displays it's own "this page cannot be displayed" error
page. This is happening for all 302 messages not just those generated by
cocoon.redirectTo().
* We have tried apending extra bytes to 302 message using the
mod_headers Module using follow
ErrorHeader append header value
but this seems to be getting ignored.
* Running Cocoon 2.1.6
* Apache 1.3.32
What I am having problems with is an alternative solution to using
redirectTo(). Does anyone have any idea?
If anyone knows of a solution to this it would be greatly appreciated.
cheers
Aron
Aron Shamash
Interface Developer
Phone 020 7907 4545
DNA An Avenue A | Razorfish Company
www.dna.co.uk
Re: Need an alternative to cocoon.redirectTo()
Posted by Giacomo Pati <gi...@apache.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 28 Feb 2006, Aron Shamash wrote:
> Date: Tue, 28 Feb 2006 04:00:47 -0800
> From: Aron Shamash <Ar...@dna.co.uk>
> Reply-To: users@cocoon.apache.org
> To: users@cocoon.apache.org
> Subject: Need an alternative to cocoon.redirectTo()
>
> Hi
>
> I have a situation whereby I may need to change all uses of
> cocoon.redirectTo() in my flowscript to something which does not throw a
> 302 message.
>
> We have various instances of redirectTo() in the flow including the need
> to pass values on the querystring eg:
> cocoon.redirectTo("2.3.html?view=true");
>
> The background :
>
> * The client is behind a Proxy server and there is a known bug in
> IE with SP2 in an SSL environment whereby for any error messages under
> 512 bytes, IE displays it's own "this page cannot be displayed" error
> page. This is happening for all 302 messages not just those generated by
> cocoon.redirectTo().
If your Cocoon sits behind an Apache HTTPD with mod_proxy use the
ErrorDocument 302 /error/HTTP_ERROR.html
Option of HTTPD to display a page bigger than 512 bytes:
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
HTH
Ciao
- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFEBKCqLNdJvZjjVZARAhDTAJ9fbXECoHVvTzdoo4gQpPPvb8TMhACgq/ZT
Je+pOgqsBqYpl5TkIOyyvII=
=7Yz4
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need an alternative to cocoon.redirectTo()
Posted by Simone Gianni <s....@thebug.it>.
Hi Aron,
I didn't know of this bug, wow! You can try to meet the 512 bytes adding
headers to the response directly from the cocoon flow, i javaflow this
is accomplished this way :
ObjectModelHelper.getResponse(getObjectModel()).addHeader("X-IEBug","Need
to write at least 512 bytes here to avoid a well known IE SP2 bug, so
please ignore this header unless you are a Microsoft Developer");
You should try with a tcp sniffer or an http sniffer (the well known
tcpmon included in axis is a good option) to check that this header is
not removed by the client proxy.
Another option could be not to use the 302 message, but a redirect page.
You can write a JX that outputs an HTML page with an http-equiv meta or
with a javascript that performs a redirect, but IMMO is a bit too much
to circumvent a IE bug that will probably get hot-fixed.
Hope this helps,
Simone
Aron Shamash wrote:
> Hi
>
> I have a situation whereby I may need to change all uses of
> *cocoon.redirectTo()* in my flowscript to something which does not
> throw a 302 message.
>
> We have various instances of redirectTo() in the flow including the
> need to pass values on the querystring eg:
>
> cocoon.redirectTo("2.3.html?view=true");
>
> *The background :*
>
> * The client is behind a Proxy server and there is a known bug in
> IE with SP2 in an SSL environment whereby for any error messages
> under 512 bytes, IE displays it's own "this page cannot be
> displayed" error page. This is happening for all 302 messages
> not just those generated by cocoon.redirectTo().
> * We have tried apending extra bytes to 302 message using the
> mod_headers Module using follow
>
> ErrorHeader append /header/ /value/
> //
> but this seems to be getting ignored.
>
> * Running Cocoon 2.1.6
> * Apache 1.3.32
>
>
> What I am having problems with is an alternative solution to
> using redirectTo(). Does anyone have any idea?
>
> If anyone knows of a solution to this it would be greatly appreciated.
>
> cheers
>
> Aron
>
>
>
>
>
> Aron Shamash
>
> Interface Developer
>
>
>
> Phone 020 7907 4545
>
> *DNA *An Avenue A | Razorfish Company
>
> _www.dna.co.uk_
>
>
--
Simone Gianni