[jboss-jira] [JBoss JIRA] Updated: (JBWEB-122) TypeCasting not properly handled in Substitution class .
Vicky Kak (JIRA)
jira-events at lists.jboss.org
Thu Sep 18 04:38:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBWEB-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vicky Kak updated JBWEB-122:
----------------------------
Attachment: 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
> 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