You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/10/16 23:46:07 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input AccessControlModule.java
andreas 2003/10/16 14:46:07
Modified: src/java/org/apache/lenya/cms/cocoon/components/modules/input
AccessControlModule.java
Log:
throwing exception when attribute is not supported
Revision Changes Path
1.9 +5 -1 cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/AccessControlModule.java
Index: AccessControlModule.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/AccessControlModule.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AccessControlModule.java 1 Sep 2003 17:02:11 -0000 1.8
+++ AccessControlModule.java 16 Oct 2003 21:46:07 -0000 1.9
@@ -121,6 +121,10 @@
Session session = request.getSession();
Object value = null;
+ if (!Arrays.asList(PARAMETER_NAMES).contains(name)) {
+ throw new ConfigurationException("The attribute [" + name + "] is not supported!");
+ }
+
if (session != null) {
Identity identity = (Identity) session.getAttribute(Identity.class.getName());
if (identity != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org