wyona / yanel

http://www.yanel.org
Apache License 2.0
10 stars 5 forks source link

Configurable Strict exists() checking (ViewableV2) #15

Open michaelwechner opened 12 years ago

michaelwechner commented 12 years ago

This patch introduces a new setting (viewable.strict-exists) to web.xml, which allows one to turn on strict exists() checking of ViewableV2 resources. Up to now, if a ViewableV2 resource's exist() function returned false, the request was still completed. This is because some resources don't implement exists() properly. But in some situations this is undesireable: so this patch makes it configurable ;-).

Index: src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java

--- src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java (revision 52644) +++ src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java (working copy) @@ -130,6 +130,7 @@ private YanelHTMLUI yanelUI;

 private boolean logAccessEnabled = false;

@@ -178,6 +179,15 @@

         // TODO: Make this value configurable also per realm or per individual user!
         logAccessEnabled = new Boolean(config.getInitParameter("log-access")).booleanValue();
michaelwechner commented 12 years ago

Also see

http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=7795