You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Akmal Sarhan <as...@byteaction.de> on 2003/06/23 10:07:35 UTC
[PATCH]DynamicURI.java
this is a patch that fixes a problem I had when using the "protected void add(int type, ParameterParser pp) " method after a file is uploaded or when the old actionevent is added to the query.
Index: DynamicURI.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/util/DynamicURI.java,v
retrieving revision 1.21
diff -u -r1.21 DynamicURI.java
--- DynamicURI.java 7 May 2003 16:02:00 -0000 1.21
+++ DynamicURI.java 23 Jun 2003 07:48:10 -0000
@@ -389,6 +389,7 @@
{
String key = (String) iter.next();
if (!key.equalsIgnoreCase(URIConstants.CGI_ACTION_PARAM) &&
+ !key.equalsIgnoreCase("file") && !key.startsWith(URIConstants.EVENT_PREFIX) &&
!key.equalsIgnoreCase(URIConstants.CGI_SCREEN_PARAM) &&
!key.equalsIgnoreCase(URIConstants.CGI_TEMPLATE_PARAM))
{
Re: [PATCH]DynamicURI.java
Posted by Akmal Sarhan <as...@byteaction.de>.
Hi,
here is the attachment.
> Please tell us, against with version of Turbine is this patch.
I had this problem with T2.2 but looking at the code in the CVS head, it
hardly changed so the patch is against the CVS head
> Does the new URI handling scheme has the same problem?
I can not tell about that because I am not using T2.3 at the moment
>
> Regards
> Henning
Re: [PATCH]DynamicURI.java
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Akmal Sarhan" <as...@byteaction.de> writes:
Hi,
can you please resend this as an attachment? Actually I can't read this. :-)
Please tell us, against with version of Turbine is this patch. Does the
new URI handling scheme has the same problem?
Regards
Henning
>------=_NextPart_000_001B_01C3396F.44D18240
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>this is a patch that fixes a problem I had when using the "protected =
>void add(int type, ParameterParser pp) " method after a file is uploaded =
>or when the old actionevent is added to the query.
>Index: DynamicURI.java
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>RCS file: =
>/home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/util/Dynami=
>cURI.java,v
>retrieving revision 1.21
>diff -u -r1.21 DynamicURI.java
>--- DynamicURI.java 7 May 2003 16:02:00 -0000 1.21
>+++ DynamicURI.java 23 Jun 2003 07:48:10 -0000
>@@ -389,6 +389,7 @@
> {
> String key =3D (String) iter.next();
> if (!key.equalsIgnoreCase(URIConstants.CGI_ACTION_PARAM) &&
>+ !key.equalsIgnoreCase("file") && =
>!key.startsWith(URIConstants.EVENT_PREFIX) &&
> =
>!key.equalsIgnoreCase(URIConstants.CGI_SCREEN_PARAM) &&
> =
>!key.equalsIgnoreCase(URIConstants.CGI_TEMPLATE_PARAM))
> {
>------=_NextPart_000_001B_01C3396F.44D18240--
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
--- Quote of the week: "Never argue with an idiot. They drag you down
to their level, then beat you with experience." ---
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org