]
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: