[jboss-jira] [JBoss JIRA] Resolved: (JBWEB-122) TypeCasting not properly handled in Substitution class .

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Wed Oct 15 12:47:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBWEB-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remy Maucherat resolved JBWEB-122.
----------------------------------

    Fix Version/s: JBossWeb-2.1.1.GA
       Resolution: Done


Jean-Frédéric has applied the patch.

> TypeCasting not properly handled in Substitution class .
> --------------------------------------------------------
>
>                 Key: JBWEB-122
>                 URL: https://jira.jboss.org/jira/browse/JBWEB-122
>             Project: JBoss Web
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Rewrite Valve
>            Reporter: Vicky Kak
>            Assignee: Vicky Kak
>             Fix For: JBossWeb-2.1.1.GA
>
>         Attachments: patch
>
>
> This patch should work.
> Index: java/org/jboss/web/rewrite/Substitution.java
> ===================================================================
> --- java/org/jboss/web/rewrite/Substitution.java        (revision 409)
> +++ java/org/jboss/web/rewrite/Substitution.java        (working copy)
> @@ -202,10 +202,10 @@
>                             ((ServerVariableEnvElement) newElement).key = sub.substring(colon + 1, close);
>                         } else if (type.equals("SSL")) {
>                             newElement = new ServerVariableSslElement();
> -                            ((ServerVariableEnvElement) newElement).key = sub.substring(colon + 1, close);
> +                            ((ServerVariableSslElement) newElement).key = sub.substring(colon + 1, close);
>                         } else if (type.equals("HTTP")) {
>                             newElement = new ServerVariableHttpElement();
> -                            ((ServerVariableEnvElement) newElement).key = sub.substring(colon + 1, close);
> +                            ((ServerVariableHttpElement) newElement).key = sub.substring(colon + 1, close);
>                         } else {
>                             throw new IllegalArgumentException(sub + ": Bad type: " + type);
>                         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list