svn commit: r1491521 - in /struts/struts2/trunk/core/src/main/java/org/apache/struts2: StrutsConstants.java dispatcher/Dispatcher.java dispatcher/StrutsRequestWrapper.java

2013-06-10 Thread mcucchiara
Author: mcucchiara
Date: Mon Jun 10 16:15:42 2013
New Revision: 1491521

URL: http://svn.apache.org/r1491521
Log:
WW-4073 - Disable eval expressions and simple JSTL accessibility

Modified:

struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java

struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java

struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StrutsRequestWrapper.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java?rev=1491521&r1=1491520&r2=1491521&view=diff
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java 
(original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java 
Mon Jun 10 16:15:42 2013
@@ -231,6 +231,9 @@ public final class StrutsConstants {
 /** Enables evaluation of OGNL expressions **/
 public static final String STRUTS_ENABLE_OGNL_EVAL_EXPRESSION = 
"struts.ognl.enableOGNLEvalExpression";
 
+/** Disables {@link org.apache.struts2.dispatcher.StrutsRequestWrapper} 
request attribute value stack lookup (JSTL accessibility) **/
+public static final String 
STRUTS_DISABLE_REQUEST_ATTRIBUTE_VALUE_STACK_LOOKUP = 
"struts.disableRequestAttributeValueStackLookup";
+
 /** The{@link org.apache.struts2.views.util.UrlHelper} implementation 
class **/
 public static final String STRUTS_URL_HELPER = "struts.view.urlHelper";
 

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java?rev=1491521&r1=1491520&r2=1491521&view=diff
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
 Mon Jun 10 16:15:42 2013
@@ -119,11 +119,16 @@ public class Dispatcher {
 private ConfigurationManager configurationManager;
 
 /**
- * Store state of  StrutsConstants.STRUTS_DEVMODE setting.
+ * Store state of StrutsConstants.STRUTS_DEVMODE setting.
  */
 private boolean devMode;
 
 /**
+ * Store state of 
StrutsConstants.DISABLE_REQUEST_ATTRIBUTE_VALUE_STACK_LOOKUP setting.
+ */
+private boolean disableRequestAttributeValueStackLookup;
+
+/**
  * Store state of StrutsConstants.STRUTS_I18N_ENCODING setting.
  */
 private String defaultEncoding;
@@ -226,6 +231,15 @@ public class Dispatcher {
 }
 
 /**
+ * Modify state of 
StrutsConstants.DISABLE_REQUEST_ATTRIBUTE_VALUE_STACK_LOOKUP setting.
+ * @param disableRequestAttributeValueStackLookup New setting
+ */
+
@Inject(value=StrutsConstants.STRUTS_DISABLE_REQUEST_ATTRIBUTE_VALUE_STACK_LOOKUP,
 required=false)
+public void setDisableRequestAttributeValueStackLookup(String 
disableRequestAttributeValueStackLookup) {
+this.disableRequestAttributeValueStackLookup = 
"true".equalsIgnoreCase(disableRequestAttributeValueStackLookup);
+}
+
+/**
  * Modify state of StrutsConstants.STRUTS_LOCALE setting.
  * @param val New setting
  */
@@ -781,7 +795,7 @@ public class Dispatcher {
 LocaleProvider provider = 
getContainer().getInstance(LocaleProvider.class);
 request = new MultiPartRequestWrapper(mpr, request, 
getSaveDir(servletContext), provider);
 } else {
-request = new StrutsRequestWrapper(request);
+request = new StrutsRequestWrapper(request, 
disableRequestAttributeValueStackLookup);
 }
 
 return request;

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StrutsRequestWrapper.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StrutsRequestWrapper.java?rev=1491521&r1=1491520&r2=1491521&view=diff
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StrutsRequestWrapper.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StrutsRequestWrapper.java
 Mon Jun 10 16:15:42 2013
@@ -21,11 +21,13 @@
 
 package org.apache.struts2.dispatcher;
 
+import com.opensymphony.xwork2.ActionContext;
+import com.opensymphony.xwork2.util.ValueStack;
+
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletRequestWrapper;
 
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import static org.apache.commons.lang3.BooleanUtils.isTrue;
 
 /**

[CONF] Confluence Changes in the last 24 hours

2013-06-10 Thread confluence
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-


Apache ActiveMQ (https://cwiki.apache.org/confluence/display/ACTIVEMQ)

Pages
-
Index edited by  tabish121  (01:27 PM)
https://cwiki.apache.org/confluence/display/ACTIVEMQ/Index

Apache.NMS.ActiveMQ v1.6.0 released created by tabish121 (12:24 PM)
https://cwiki.apache.org/confluence/display/ACTIVEMQ/2013/06/10/Apache.NMS.ActiveMQ+v1.6.0+released



Apache Bigtop (https://cwiki.apache.org/confluence/display/BIGTOP)

Pages
-
How to install Hadoop distribution from Bigtop 0.6.0 created by rvs (02:51 PM)
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+install+Hadoop+distribution+from+Bigtop+0.6.0

How to install Hadoop distribution from Bigtop 0.5.0 edited by  
mgro...@oanda.com  (02:06 PM)
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+install+Hadoop+distribution+from+Bigtop+0.5.0



Apache Cayenne (https://cwiki.apache.org/confluence/display/CAY)

Pages
-
Board Report June 2013 created by blacknext (12:07 PM)
https://cwiki.apache.org/confluence/display/CAY/Board+Report+June+2013

Board Report March 2013 edited by  blacknext  (12:06 PM)
https://cwiki.apache.org/confluence/display/CAY/Board+Report+March+2013

Board Reports edited by  blacknext  (12:05 PM)
https://cwiki.apache.org/confluence/display/CAY/Board+Reports



Apache Cloudstack (https://cwiki.apache.org/confluence/display/CLOUDSTACK)

Pages
-
Apache CloudStack Weekly News - 10 June 2013 edited by  jtomechak  (09:33 PM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Apache+CloudStack+Weekly+News+-+10+June+2013

Scaling-up CPU and RAM for running VMs edited by  prashantkm  (09:04 AM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Scaling-up+CPU+and+RAM+for+running+VMs

Granular   Global Configuration Parameters edited by  prashantkm  (03:34 AM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Granular+++Global+Configuration+Parameters

Dedicated_Resuorces_ZONE_pod_Cluster_host_execution created by 
kiran.kon...@citrix.com (01:57 AM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Dedicated_Resuorces_ZONE_pod_Cluster_host_execution

Non-US Keyboard Testing edited by  karthikeyan2  (01:49 AM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Non-US+Keyboard+Testing

MidoNet Test Plan edited by  j...@midokura.jp  (12:59 AM)
https://cwiki.apache.org/confluence/display/CLOUDSTACK/MidoNet+Test+Plan



Apache Hive (https://cwiki.apache.org/confluence/display/Hive)

Pages
-
LanguageManual Joins edited by  bro...@gmail.com  (04:49 PM)
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Joins



Apache Kafka (https://cwiki.apache.org/confluence/display/KAFKA)

Pages
-
Kafka papers and presentations edited by  andrew.lena...@gmail.com  (03:50 PM)
https://cwiki.apache.org/confluence/display/KAFKA/Kafka+papers+and+presentations

Clients edited by  andrew.lena...@gmail.com  (03:40 PM)
https://cwiki.apache.org/confluence/display/KAFKA/Clients



Apache Mahout (https://cwiki.apache.org/confluence/display/MAHOUT)

Pages
-
How To Contribute edited by  robinanil  (02:56 AM)
https://cwiki.apache.org/confluence/display/MAHOUT/How+To+Contribute



Apache ActiveMQ NMS (https://cwiki.apache.org/confluence/display/NMS)

Pages
-
Apache.NMS.ActiveMQ v1.6.0 Released created by tabish121 (12:20 PM)
https://cwiki.apache.org/confluence/display/NMS/2013/06/10/Apache.NMS.ActiveMQ+v1.6.0+Released



OFBiz Project Administration Workspace 
(https://cwiki.apache.org/confluence/display/OFBADMIN)

Pages
-
A New Application Framework Design edited by  adrianc  (05:09 PM)
https://cwiki.apache.org/confluence/display/OFBADMIN/A+New+Application+Framework+Design

Configuration created by adrianc (05:58 AM)
https://cwiki.apache.org/confluence/display/OFBADMIN/Configuration



Apache OpenOffice Community 
(https://cwiki.apache.org/confluence/display/OOOUSERS)

Comments
https://cwiki.apache.org/confluence/display/OOOUSERS/AOO4+-+Websites (1)

Apache Sling (https://cwiki.apache.org/confluence/display/SLING)

Pages
-
Sling IDE tooling edited by  rombert  (12:34 PM)
https://cwiki.apache.org/confluence/display/SLING/Sling+IDE+tooling



UIMA (https://cwiki