[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Directory Community & Resources (directory) http://cwiki.apache.org/confluence/display/directory | |-Pages Added or Edited in This Space |-- Apache DS 2.0 What's new was created by szoerner (03:50 AM). | http://cwiki.apache.org/confluence/display/directory/Apache+DS+2.0+What%27s+new |-- Conference materials was last edited by szoerner (03:48 AM). | http://cwiki.apache.org/confluence/display/directory/Conference+materials Apache Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX | |-Pages Added or Edited in This Space |-- apache-felix-ipojo-junit4osgi-tutorial was created by clement.escoffier (01:46 AM). | http://cwiki.apache.org/confluence/display/FELIX/apache-felix-ipojo-junit4osgi-tutorial |-- apache-felix-ipojo-junit4osgi-maven was created by clement.escoffier (03:24 AM). | http://cwiki.apache.org/confluence/display/FELIX/apache-felix-ipojo-junit4osgi-maven |-- apache-felix-ipojo-junit4osgi-architecture was created by clement.escoffier (02:58 AM). | http://cwiki.apache.org/confluence/display/FELIX/apache-felix-ipojo-junit4osgi-architecture |-- apache-felix-ipojo-junit4osgi-methods was created by clement.escoffier (02:31 AM). | http://cwiki.apache.org/confluence/display/FELIX/apache-felix-ipojo-junit4osgi-methods |-- apache-felix-ipojo-junit4osgi was last edited by clement.escoffier (01:35 AM). | http://cwiki.apache.org/confluence/display/FELIX/apache-felix-ipojo-junit4osgi Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL | |-Pages Added or Edited in This Space |-- Camel 2.0.0 Release was last edited by davsclaus (11:08 PM). | http://cwiki.apache.org/confluence/display/CAMEL/Camel+2.0.0+Release |-- Polling Consumer was last edited by davsclaus (11:07 PM). | http://cwiki.apache.org/confluence/display/CAMEL/Polling+Consumer Apache Struts 2 Plugin Registry (S2PLUGINS) http://cwiki.apache.org/confluence/display/S2PLUGINS | |-Pages Added or Edited in This Space |-- YUI Plugin was last edited by cody.burleson (09:09 PM). | http://cwiki.apache.org/confluence/display/S2PLUGINS/YUI+Plugin | |-New Comments in This Space |-- http://cwiki.apache.org/confluence/display/S2PLUGINS/YUI+Plugin (3) OpenWebBeans (OWB) http://cwiki.apache.org/confluence/display/OWB | |-Pages Added or Edited in This Space |-- Index was last edited by gerdogdu (05:49 AM). | http://cwiki.apache.org/confluence/display/OWB/Index Apache Geronimo v2.2 (GMOxDOC22) http://cwiki.apache.org/confluence/display/GMOxDOC22 | |-Pages Added or Edited in This Space |-- Monitoring thread pools was created by sophia (07:40 PM). | http://cwiki.apache.org/confluence/display/GMOxDOC22/Monitoring+thread+pools Apache Wicket Website (WICKETxSITE) http://cwiki.apache.org/confluence/display/WICKETxSITE | |-Pages Added or Edited in This Space |-- Blogs was last edited by gwynevans (04:55 AM). | http://cwiki.apache.org/confluence/display/WICKETxSITE/Blogs Apache MINA (MINA) http://cwiki.apache.org/confluence/display/MINA | |-Pages Added or Edited in This Space |-- Conferences was last edited by elecharny (03:30 AM). | http://cwiki.apache.org/confluence/display/MINA/Conferences Apache Struts 2 Wiki (S2WIKI) http://cwiki.apache.org/confluence/display/S2WIKI | |-Pages Added or Edited in This Space |-- Companies that provide Struts 2 support was last edited by cody.burleson (12:40 PM). | http://cwiki.apache.org/confluence/display/S2WIKI/Companies+that+provide+Struts+2+support Apache Directory Website (DIRxSITE) http://cwiki.apache.org/confluence/display/DIRxSITE | |-Pages Added or Edited in This Space |-- Navigation was last edited by szoerner (03:41 AM). | http://cwiki.apache.org/confluence/display/DIRxSITE/Navigation Test Space (test) http://cwiki.apache.org/confluence/display/test | |-Pages Added or Edited in This Space |-- Three was created by gerdogdu (05:33 AM). | http://cwiki.apache.org/confluence/display/test/2009/03/29/Three |-- My Test2 was created by gerdogdu (05:32 AM). | http://cwiki.apache.org/confluence/display/test/My+Test2 - Updated User Profiles: - cody.burleson |- http://cwiki.apache.org/confluence/display/~cody.burleson - CONFLUENCE INFORMATION This message is automatically generated by Confluence Unsubscribe or edit your notifications preferences http://cwiki.apache.org/confluence/users/viewnotifications.action If you think it was sent incorrectly contact one of the administrators http://cwiki.apache.org/confluence/ad
Issues Opened: week of 2009-03-30
Struts2 - Monday, March 30, 2009 6 opened in last 7 days [WW-3061] labelSeperator attribute on radio tag appears to do nothing - Type: Bug - Reporter: Paul Nilsson - Components: [Plugin - Tags] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3061 [WW-3060] Reloading of Resource bundle on modification - Type: Improvement - Reporter: vishal jain - Components: [] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3060 [WW-3059] Decoding of parameters sent with XMLHttpRequest - Type: Bug - Reporter: Miguel Diaz - Components: [Dispatch Filter] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3059 [WW-3058] Upgrade to Velocity 1.6.2 and Velocity Tools 1.4 - Type: Improvement - Reporter: Rod - Components: [Other] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3058 [WW-3057] i18n tags lost value problem - Type: Bug - Reporter: Pedro Miguel - Components: [Other] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3057 [WW-3064] Velocity-tools Struts2 problem, help! - Type: Bug - Reporter: bartosz - Components: [Integration] - Affects Versions: [] - http://issues.apache.org/struts/browse/WW-3064
svn commit: r760071 - in /struts/struts2/trunk/core/src/main: java/org/apache/struts2/StrutsConstants.java java/org/apache/struts2/config/BeanSelectionProvider.java resources/org/apache/struts2/defaul
Author: musachy Date: Mon Mar 30 17:58:42 2009 New Revision: 760071 URL: http://svn.apache.org/viewvc?rev=760071&view=rev Log: WW-3067 Add a configuration constant to turn on/off the logging of missing properties by OGNL Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/StrutsConstants.java struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java struts/struts2/trunk/core/src/main/resources/org/apache/struts2/default.properties 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=760071&r1=760070&r2=760071&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 Mar 30 17:58:42 2009 @@ -198,4 +198,7 @@ /** Throw RuntimeException when a property is not found, or the evaluation of the espression fails*/ public static final String STRUTS_EL_THROW_EXCEPTION = "struts.el.throwExceptionOnFailure"; + +/** Logs properties that are not found (very verbose) **/ +public static final String STRUTS_LOG_MISSING_PROPERTIES = "struts.ognl.logMissingProperties"; } Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java?rev=760071&r1=760070&r2=760071&view=diff == --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java Mon Mar 30 17:58:42 2009 @@ -228,6 +228,8 @@ props.setProperty("devMode", "false"); } +props.setProperty("logMissingProperties", props.getProperty(StrutsConstants.STRUTS_LOG_MISSING_PROPERTIES)); + String val = props.getProperty(StrutsConstants.STRUTS_ALLOW_STATIC_METHOD_ACCESS); if (val != null) { props.setProperty("allowStaticMethodAccess", val); Modified: struts/struts2/trunk/core/src/main/resources/org/apache/struts2/default.properties URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/default.properties?rev=760071&r1=760070&r2=760071&view=diff == --- struts/struts2/trunk/core/src/main/resources/org/apache/struts2/default.properties (original) +++ struts/struts2/trunk/core/src/main/resources/org/apache/struts2/default.properties Mon Mar 30 17:58:42 2009 @@ -200,4 +200,7 @@ ### in an expression, or when the expression evaluation fails struts.el.throwExceptionOnFailure=false +### Logs as Warnings properties that are not found (very verbose) +struts.ognl.logMissingProperties=false + ### END SNIPPET: complete_file
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 782 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAINJ6-782 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-782/ -- Code Changes -- Musachy Barroso (760071): >WW-3067 Add a configuration constant to turn on/off the logging of missing >properties by OGNL -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to find artifact. Embedded error: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/maven-snapshot-repository), central (https://m2proxy.atlassian.com/repository/public) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build build 1069 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAIN-1069 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-1069/ -- Code Changes -- Musachy Barroso (760071): >WW-3067 Add a configuration constant to turn on/off the logging of missing >properties by OGNL -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.opensymphony ArtifactId: xwork Version: 2.1.3-SNAPSHOT Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: central (https://m2proxy.atlassian.com/repository/public), apache.snapshots (http://people.apache.org/maven-snapshot-repository) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
svn commit: r760099 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
Author: musachy Date: Mon Mar 30 18:48:38 2009 New Revision: 760099 URL: http://svn.apache.org/viewvc?rev=760099&view=rev Log: WW-3067 Add a configuration constant to turn on/off the logging of missing properties by OGNL Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java?rev=760099&r1=760098&r2=760099&view=diff == --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java Mon Mar 30 18:48:38 2009 @@ -228,7 +228,8 @@ props.setProperty("devMode", "false"); } -props.setProperty("logMissingProperties", props.getProperty(StrutsConstants.STRUTS_LOG_MISSING_PROPERTIES)); +if (props.containsKey(StrutsConstants.STRUTS_LOG_MISSING_PROPERTIES)) +props.setProperty("logMissingProperties", props.getProperty(StrutsConstants.STRUTS_LOG_MISSING_PROPERTIES)); String val = props.getProperty(StrutsConstants.STRUTS_ALLOW_STATIC_METHOD_ACCESS); if (val != null) {
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 783 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAINJ6-783 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-783/ -- Code Changes -- Musachy Barroso (760099): >WW-3067 Add a configuration constant to turn on/off the logging of missing >properties by OGNL -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to find artifact. Embedded error: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/maven-snapshot-repository), central (https://m2proxy.atlassian.com/repository/public) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build build 1070 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAIN-1070 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-1070/ -- Code Changes -- Musachy Barroso (760099): >WW-3067 Add a configuration constant to turn on/off the logging of missing >properties by OGNL -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.opensymphony ArtifactId: xwork Version: 2.1.3-SNAPSHOT Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: central (https://m2proxy.atlassian.com/repository/public), apache.snapshots (http://people.apache.org/maven-snapshot-repository) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
svn commit: r760103 - in /struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation: AnnotationValidationInterceptorTest.java JSONValidationInterceptorTest.java
Author: musachy Date: Mon Mar 30 18:57:28 2009 New Revision: 760103 URL: http://svn.apache.org/viewvc?rev=760103&view=rev Log: WW-2996 Fix emory Leak when SlashesInActionNames is enabled and wildcards are used in actionnames Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/JSONValidationInterceptorTest.java Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java?rev=760103&r1=760102&r2=760103&view=diff == --- struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java (original) +++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java Mon Mar 30 18:57:28 2009 @@ -27,6 +27,7 @@ import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.ActionProxy; import com.opensymphony.xwork2.Validateable; +import com.opensymphony.xwork2.config.entities.ActionConfig; public class AnnotationValidationInterceptorTest extends StrutsTestCase { @@ -34,12 +35,14 @@ private Mock mockActionInvocation; private Mock mockActionProxy; private TestAction test; +private ActionConfig config; public void setUp() throws Exception { super.setUp(); test = new TestAction(); interceptor = new AnnotationValidationInterceptor(); container.inject(interceptor); +config = new ActionConfig.Builder("", "foo", "").build(); mockActionInvocation = new Mock(ActionInvocation.class); mockActionProxy = new Mock(ActionProxy.class); mockActionInvocation.matchAndReturn("getProxy", (ActionProxy) mockActionProxy.proxy()); @@ -49,7 +52,7 @@ public void testShouldNotSkip() throws Exception { mockActionProxy.expectAndReturn("getMethod", "execute"); -mockActionProxy.expectAndReturn("getActionName", "foo"); +mockActionProxy.expectAndReturn("getConfig", config); mockActionProxy.expectAndReturn("getMethod", "execute"); interceptor.doIntercept((ActionInvocation)mockActionInvocation.proxy()); mockActionProxy.verify(); @@ -81,7 +84,7 @@ public void testShouldNotSkipBase() throws Exception { mockActionProxy.expectAndReturn("getMethod", "dontSkipMeBase"); -mockActionProxy.expectAndReturn("getActionName", "foo"); +mockActionProxy.expectAndReturn("getConfig", config); mockActionProxy.expectAndReturn("getMethod", "dontSkipMeBase"); interceptor.doIntercept((ActionInvocation)mockActionInvocation.proxy()); mockActionProxy.verify(); Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/JSONValidationInterceptorTest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/JSONValidationInterceptorTest.java?rev=760103&r1=760102&r2=760103&view=diff == --- struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/JSONValidationInterceptorTest.java (original) +++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/validation/JSONValidationInterceptorTest.java Mon Mar 30 18:57:28 2009 @@ -38,6 +38,7 @@ import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; +import com.opensymphony.xwork2.config.entities.ActionConfig; import com.opensymphony.xwork2.mock.MockActionInvocation; import com.opensymphony.xwork2.mock.MockActionProxy; import com.opensymphony.xwork2.util.ValueStack; @@ -128,6 +129,7 @@ protected void setUp() throws Exception { super.setUp(); +ActionConfig config = new ActionConfig.Builder("", "name", "").build(); this.action = new TestAction(); this.interceptor = new JSONValidationInterceptor(); this.validationInterceptor = new AnnotationValidationInterceptor(); @@ -152,6 +154,7 @@ MockActionProxy proxy = new MockActionProxy(); proxy.setMethod("execute"); proxy.setAction(action); +proxy.setConfig(config); invocation.setProxy(proxy); }
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 784 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAINJ6-784 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-784/ -- Code Changes -- Musachy Barroso (760103): >WW-2996 Fix emory Leak when SlashesInActionNames is enabled and wildcards are >used in actionnames -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to find artifact. Embedded error: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: apache.snapshots (http://people.apache.org/maven-snapshot-repository), central (https://m2proxy.atlassian.com/repository/public) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build build 1071 has FAILED (0 tests failed). Change made by Musachy Barroso
--- STRUTS-MAIN-1071 failed. --- Code has been updated by Musachy Barroso. No failed tests found, a possible compilation error. http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-1071/ -- Code Changes -- Musachy Barroso (760103): >WW-2996 Fix emory Leak when SlashesInActionNames is enabled and wildcards are >used in actionnames -- Error Summary -- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.opensymphony ArtifactId: xwork Version: 2.1.3-SNAPSHOT Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.opensymphony -DartifactId=xwork -Dversion=2.1.3-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.opensymphony:xwork:jar:2.1.3-SNAPSHOT from the specified remote repositories: central (https://m2proxy.atlassian.com/repository/public), apache.snapshots (http://people.apache.org/maven-snapshot-repository) [INFO] [INFO] For more information, run Maven with the -e switch -- This message is automatically generated by Atlassian Bamboo
svn commit: r760136 - in /struts/sandbox/trunk/struts2-oval-plugin/src: main/java/org/apache/struts2/interceptor/ test/java/org/apache/struts2/interceptor/ test/resources/ test/resources/org/apache/st
Author: musachy Date: Mon Mar 30 20:02:31 2009 New Revision: 760136 URL: http://svn.apache.org/viewvc?rev=760136&view=rev Log: Add more tests. Improve field name extraction from OVal message Added: struts/sandbox/trunk/struts2-oval-plugin/src/test/java/org/apache/struts2/interceptor/SimpleFieldsXMLChild.java struts/sandbox/trunk/struts2-oval-plugin/src/test/java/org/apache/struts2/interceptor/ValidationInMethods.java struts/sandbox/trunk/struts2-oval-plugin/src/test/java/org/apache/struts2/interceptor/aa.java struts/sandbox/trunk/struts2-oval-plugin/src/test/resources/org/apache/struts2/interceptor/SimpleFieldsXMLChild-validation.xml Modified: struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/DefaultOValValidationManager.java struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/OValValidationInterceptor.java struts/sandbox/trunk/struts2-oval-plugin/src/test/java/org/apache/struts2/interceptor/OValValidationInterceptorTest.java struts/sandbox/trunk/struts2-oval-plugin/src/test/resources/org/apache/struts2/interceptor/SimpleFieldI18n.properties struts/sandbox/trunk/struts2-oval-plugin/src/test/resources/org/apache/struts2/interceptor/SimpleFieldsXML-validation.xml struts/sandbox/trunk/struts2-oval-plugin/src/test/resources/oval-test.xml Modified: struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/DefaultOValValidationManager.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/DefaultOValValidationManager.java?rev=760136&r1=760135&r2=760136&view=diff == --- struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/DefaultOValValidationManager.java (original) +++ struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/DefaultOValValidationManager.java Mon Mar 30 20:02:31 2009 @@ -19,9 +19,9 @@ public class DefaultOValValidationManager implements OValValidationManager { private static final Logger LOG = LoggerFactory.getLogger(DefaultOValValidationManager.class); -private static final String VALIDATION_CONFIG_SUFFIX = "-validation.xml"; -private final Map> validatorCache = new HashMap>(); -private final Map validatorFileCache = new HashMap(); +protected static final String VALIDATION_CONFIG_SUFFIX = "-validation.xml"; +protected final Map> validatorCache = new HashMap>(); +protected final Map validatorFileCache = new HashMap(); public synchronized List getConfigurers(Class clazz, String context) { final String validatorKey = buildValidatorKey(clazz, context); Modified: struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/OValValidationInterceptor.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/OValValidationInterceptor.java?rev=760136&r1=760135&r2=760136&view=diff == --- struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/OValValidationInterceptor.java (original) +++ struts/sandbox/trunk/struts2-oval-plugin/src/main/java/org/apache/struts2/interceptor/OValValidationInterceptor.java Mon Mar 30 20:02:31 2009 @@ -42,6 +42,7 @@ import java.util.List; import java.lang.reflect.Method; +import java.lang.reflect.Field; import org.apache.struts2.validation.Profiles; import org.apache.commons.lang.xwork.StringUtils; @@ -89,7 +90,7 @@ ActionProxy proxy = invocation.getProxy(); ValueStack valueStack = invocation.getStack(); String methodName = proxy.getMethod(); -String context = proxy.getActionName(); +String context = proxy.getConfig().getName(); if (LOG.isDebugEnabled()) { LOG.debug("Validating [#0/#1] with method [#2]", invocation.getProxy().getNamespace(), invocation.getProxy().getActionName(), methodName); @@ -167,7 +168,7 @@ String key = violation.getMessage(); //push the validator into the stack -valueStack.push(violation); +valueStack.push(violation.getContext()); String message = key; try { message = validatorContext.getText(key); @@ -178,10 +179,8 @@ if (isActionError(violation)) validatorContext.addActionError(message); else { -String className = clazz.getName(); -//the default OVal message shows the field name as ActionClass.fieldName -message = StringUtils.removeStart(message, className + "."); - validatorContext.addFieldError(extractFieldNa