[jboss-jira] [JBoss JIRA] Created: (JBWEB-147) RewriteValve MBean configuration attribute - getter and setter not compatible
Kevin Mudrick (JIRA)
jira-events at lists.jboss.org
Tue Sep 29 15:48:49 EDT 2009
RewriteValve MBean configuration attribute - getter and setter not compatible
-----------------------------------------------------------------------------
Key: JBWEB-147
URL: https://jira.jboss.org/jira/browse/JBWEB-147
Project: JBoss Web
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossWeb-2.1.4.GA
Reporter: Kevin Mudrick
Assignee: Remy Maucherat
If one hits the "Apply Changes" in the jboss.web / RewriteValve JMX MBean in the JBoss JMX console, with the existing value (from what the console renders), without making any changes whatsoever, you lose your existing rewrite rules.
Looking at the code, it seems as though the implementation of the setter and getter methods for the configuration property not quite on the same page. The getter loops over your rules and conditions, calling toString on each - but the toString implementations for org.jboss.web.rewrite.RewriteCond and org.jboss.web.rewrite.RewriteRule ignore things like the flags. There are FIXMEs that mention this. The setter expects a properly formatted, newline-delimited complete set of properties as a String.
--
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