[jira] [Created] (WW-3878) Add dedicated object to hold ValueStack values instead serialising the entire VS
Lukasz Lenart created WW-3878: - Summary: Add dedicated object to hold ValueStack values instead serialising the entire VS Key: WW-3878 URL: https://issues.apache.org/jira/browse/WW-3878 Project: Struts 2 Issue Type: Improvement Components: "New" API Reporter: Lukasz Lenart Fix For: 2.5 Follow the discussion http://markmail.org/message/mra5d7p3lcf433u3 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3876) NumberConverter convert WRONG
[ https://issues.apache.org/jira/browse/WW-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452811#comment-13452811 ] Steven Sinclair commented on WW-3876: - I got it. Thank you !All guys. > NumberConverter convert WRONG > - > > Key: WW-3876 > URL: https://issues.apache.org/jira/browse/WW-3876 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Value Stack >Affects Versions: 2.3.4.1 > Environment: java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > OS:Win7 > Browser:Chrome > OGNL version 3.0.5 >Reporter: Steven Sinclair >Priority: Minor > Labels: mapping > > I have one action let's called Foo. > Foo has one field named "entity" and Foo implement ModelDriven interface. > so code like below: > {code:title=Foo.java|borderStyle=dashed} > @Namespace("/userresourceaccount") > public class Foo ... { > > private UserResourceAccount entity = new UserResourceAccount(); > > @Override > public UserResourceAccount getModel() { > return entity; > } > @Action(value = "deleteResourceAccountByUserId", results = {@Result(name > = "swJson", type = "json", params = { > "root", "result"})}) > public String deleteResourceAccountByUserId() > throws Exception { > > try { > String id = RequestUtils.getStringParameter(getRequest(), "id"); > > String[] ids = id.split(","); > userResourceAccountService.deleteUserResourceAccount(ids); > > result.add(true); > } > catch (Exception e) { > logger.error(e.getMessage(), e); > result.add(false); > } > > return "swJson"; > } > ... > {code} > http request like this > {color:green}/userresourceaccount/deleteResourceAccountByUserId.action?id=3571,{color} > actually,above "id" is not numerical.it is String value. > but "entity" has one Long field named "id": > {code:title=UserResourceAccount.java|borderStyle=dashed} > public class UserResourceAccount { > private Long id; >... > } > {code} > and error happened. > {quote} > 2012-09-10 18:24:53,258 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,261 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,262 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,264 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,265 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,266 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Creating an DefaultActionProxy for namespace /userresourceaccount and > action name deleteResourceAccountByUserId > 2012-09-10 18:24:53,268 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - entering MessageStoreInterceptor ... > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - retrieve error / message from session to populate into action > [net.bwda.framework.web.asset.UserResourceAccountAction@134b16b] > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - intercept '/userresourceaccount/deleteResourceAccountByUserId' { > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - applied invocation context locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - before Locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.open
[jira] [Closed] (WW-3876) NumberConverter convert WRONG
[ https://issues.apache.org/jira/browse/WW-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rene Gielen closed WW-3876. --- Resolution: Not A Problem As pointed out in the comments, Struts 2 behaves correctly here > NumberConverter convert WRONG > - > > Key: WW-3876 > URL: https://issues.apache.org/jira/browse/WW-3876 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Value Stack >Affects Versions: 2.3.4.1 > Environment: java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > OS:Win7 > Browser:Chrome > OGNL version 3.0.5 >Reporter: Steven Sinclair >Priority: Minor > Labels: mapping > > I have one action let's called Foo. > Foo has one field named "entity" and Foo implement ModelDriven interface. > so code like below: > {code:title=Foo.java|borderStyle=dashed} > @Namespace("/userresourceaccount") > public class Foo ... { > > private UserResourceAccount entity = new UserResourceAccount(); > > @Override > public UserResourceAccount getModel() { > return entity; > } > @Action(value = "deleteResourceAccountByUserId", results = {@Result(name > = "swJson", type = "json", params = { > "root", "result"})}) > public String deleteResourceAccountByUserId() > throws Exception { > > try { > String id = RequestUtils.getStringParameter(getRequest(), "id"); > > String[] ids = id.split(","); > userResourceAccountService.deleteUserResourceAccount(ids); > > result.add(true); > } > catch (Exception e) { > logger.error(e.getMessage(), e); > result.add(false); > } > > return "swJson"; > } > ... > {code} > http request like this > {color:green}/userresourceaccount/deleteResourceAccountByUserId.action?id=3571,{color} > actually,above "id" is not numerical.it is String value. > but "entity" has one Long field named "id": > {code:title=UserResourceAccount.java|borderStyle=dashed} > public class UserResourceAccount { > private Long id; >... > } > {code} > and error happened. > {quote} > 2012-09-10 18:24:53,258 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,261 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,262 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,264 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,265 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,266 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Creating an DefaultActionProxy for namespace /userresourceaccount and > action name deleteResourceAccountByUserId > 2012-09-10 18:24:53,268 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - entering MessageStoreInterceptor ... > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - retrieve error / message from session to populate into action > [net.bwda.framework.web.asset.UserResourceAccountAction@134b16b] > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - intercept '/userresourceaccount/deleteResourceAccountByUserId' { > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - applied invocation context locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - before Locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphon
[jira] [Updated] (WW-3876) NumberConverter convert WRONG
[ https://issues.apache.org/jira/browse/WW-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rene Gielen updated WW-3876: Priority: Minor (was: Major) > NumberConverter convert WRONG > - > > Key: WW-3876 > URL: https://issues.apache.org/jira/browse/WW-3876 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Value Stack >Affects Versions: 2.3.4.1 > Environment: java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > OS:Win7 > Browser:Chrome > OGNL version 3.0.5 >Reporter: Steven Sinclair >Priority: Minor > Labels: mapping > > I have one action let's called Foo. > Foo has one field named "entity" and Foo implement ModelDriven interface. > so code like below: > {code:title=Foo.java|borderStyle=dashed} > @Namespace("/userresourceaccount") > public class Foo ... { > > private UserResourceAccount entity = new UserResourceAccount(); > > @Override > public UserResourceAccount getModel() { > return entity; > } > @Action(value = "deleteResourceAccountByUserId", results = {@Result(name > = "swJson", type = "json", params = { > "root", "result"})}) > public String deleteResourceAccountByUserId() > throws Exception { > > try { > String id = RequestUtils.getStringParameter(getRequest(), "id"); > > String[] ids = id.split(","); > userResourceAccountService.deleteUserResourceAccount(ids); > > result.add(true); > } > catch (Exception e) { > logger.error(e.getMessage(), e); > result.add(false); > } > > return "swJson"; > } > ... > {code} > http request like this > {color:green}/userresourceaccount/deleteResourceAccountByUserId.action?id=3571,{color} > actually,above "id" is not numerical.it is String value. > but "entity" has one Long field named "id": > {code:title=UserResourceAccount.java|borderStyle=dashed} > public class UserResourceAccount { > private Long id; >... > } > {code} > and error happened. > {quote} > 2012-09-10 18:24:53,258 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,261 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,262 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,264 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,265 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,266 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Creating an DefaultActionProxy for namespace /userresourceaccount and > action name deleteResourceAccountByUserId > 2012-09-10 18:24:53,268 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - entering MessageStoreInterceptor ... > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - retrieve error / message from session to populate into action > [net.bwda.framework.web.asset.UserResourceAccountAction@134b16b] > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - intercept '/userresourceaccount/deleteResourceAccountByUserId' { > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - applied invocation context locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - before Locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68
[jira] [Commented] (WW-3876) NumberConverter convert WRONG
[ https://issues.apache.org/jira/browse/WW-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452805#comment-13452805 ] Rene Gielen commented on WW-3876: - Number formats are locale specific. 1,000.00 is a valid representation for 1000 in US, while in most European countries it would be 1.000,00. To learn more about that, check the NumberFormat JDK API docs. > NumberConverter convert WRONG > - > > Key: WW-3876 > URL: https://issues.apache.org/jira/browse/WW-3876 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Value Stack >Affects Versions: 2.3.4.1 > Environment: java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > OS:Win7 > Browser:Chrome > OGNL version 3.0.5 >Reporter: Steven Sinclair > Labels: mapping > > I have one action let's called Foo. > Foo has one field named "entity" and Foo implement ModelDriven interface. > so code like below: > {code:title=Foo.java|borderStyle=dashed} > @Namespace("/userresourceaccount") > public class Foo ... { > > private UserResourceAccount entity = new UserResourceAccount(); > > @Override > public UserResourceAccount getModel() { > return entity; > } > @Action(value = "deleteResourceAccountByUserId", results = {@Result(name > = "swJson", type = "json", params = { > "root", "result"})}) > public String deleteResourceAccountByUserId() > throws Exception { > > try { > String id = RequestUtils.getStringParameter(getRequest(), "id"); > > String[] ids = id.split(","); > userResourceAccountService.deleteUserResourceAccount(ids); > > result.add(true); > } > catch (Exception e) { > logger.error(e.getMessage(), e); > result.add(false); > } > > return "swJson"; > } > ... > {code} > http request like this > {color:green}/userresourceaccount/deleteResourceAccountByUserId.action?id=3571,{color} > actually,above "id" is not numerical.it is String value. > but "entity" has one Long field named "id": > {code:title=UserResourceAccount.java|borderStyle=dashed} > public class UserResourceAccount { > private Long id; >... > } > {code} > and error happened. > {quote} > 2012-09-10 18:24:53,258 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,261 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,262 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,264 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,265 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,266 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Creating an DefaultActionProxy for namespace /userresourceaccount and > action name deleteResourceAccountByUserId > 2012-09-10 18:24:53,268 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - entering MessageStoreInterceptor ... > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - retrieve error / message from session to populate into action > [net.bwda.framework.web.asset.UserResourceAccountAction@134b16b] > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - intercept '/userresourceaccount/deleteResourceAccountByUserId' { > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - applied invocation context locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.Com
[jira] [Commented] (WW-3876) NumberConverter convert WRONG
[ https://issues.apache.org/jira/browse/WW-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452803#comment-13452803 ] Steven Sinclair commented on WW-3876: - Hi,Guys.In my country, {code:borderStyle=dashed}1234 != ,1234{code} why in American 1234 equals ,1234. :-) > NumberConverter convert WRONG > - > > Key: WW-3876 > URL: https://issues.apache.org/jira/browse/WW-3876 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Value Stack >Affects Versions: 2.3.4.1 > Environment: java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > OS:Win7 > Browser:Chrome > OGNL version 3.0.5 >Reporter: Steven Sinclair > Labels: mapping > > I have one action let's called Foo. > Foo has one field named "entity" and Foo implement ModelDriven interface. > so code like below: > {code:title=Foo.java|borderStyle=dashed} > @Namespace("/userresourceaccount") > public class Foo ... { > > private UserResourceAccount entity = new UserResourceAccount(); > > @Override > public UserResourceAccount getModel() { > return entity; > } > @Action(value = "deleteResourceAccountByUserId", results = {@Result(name > = "swJson", type = "json", params = { > "root", "result"})}) > public String deleteResourceAccountByUserId() > throws Exception { > > try { > String id = RequestUtils.getStringParameter(getRequest(), "id"); > > String[] ids = id.split(","); > userResourceAccountService.deleteUserResourceAccount(ids); > > result.add(true); > } > catch (Exception e) { > logger.error(e.getMessage(), e); > result.add(false); > } > > return "swJson"; > } > ... > {code} > http request like this > {color:green}/userresourceaccount/deleteResourceAccountByUserId.action?id=3571,{color} > actually,above "id" is not numerical.it is String value. > but "entity" has one Long field named "id": > {code:title=UserResourceAccount.java|borderStyle=dashed} > public class UserResourceAccount { > private Long id; >... > } > {code} > and error happened. > {quote} > 2012-09-10 18:24:53,258 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,261 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,262 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,264 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Entering nullPropertyValue > [target=[com.opensymphony.xwork2.DefaultTextProvider@1071776], > property=struts] > 2012-09-10 18:24:53,265 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Checking ConfigurationProviders for reload. > 2012-09-10 18:24:53,266 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - Creating an DefaultActionProxy for namespace /userresourceaccount and > action name deleteResourceAccountByUserId > 2012-09-10 18:24:53,268 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - entering MessageStoreInterceptor ... > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - retrieve error / message from session to populate into action > [net.bwda.framework.web.asset.UserResourceAccountAction@134b16b] > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - intercept '/userresourceaccount/deleteResourceAccountByUserId' { > 2012-09-10 18:24:53,269 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - applied invocation context locale=zh_CN > 2012-09-10 18:24:53,270 [5119480@qtp-29553921-9] DEBUG > [com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)] > - before Locale=zh_CN > 2012-09-10 18:24:53,
[jira] [Updated] (WW-3873) file tag leaks server path information
[ https://issues.apache.org/jira/browse/WW-3873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-3873: -- Fix Version/s: 2.3.x > file tag leaks server path information > -- > > Key: WW-3873 > URL: https://issues.apache.org/jira/browse/WW-3873 > Project: Struts 2 > Issue Type: Bug >Affects Versions: 2.3.4, 2.3.4.1 > Environment: Linux, weblogic 10-12, tomcat 7 >Reporter: Cam Morris >Priority: Minor > Fix For: 2.3.x > > Attachments: file-leak.png > > > After a fileupload action, if the result jsp contains a tag the > value attribute is filled in with the server path where the file was saved. > This discloses file system information about the server. > To duplicate: > 1) setup the struts2_showcase sample app > 2) change struts-fileupload.xml from this > {code} > class="org.apache.struts2.showcase.fileupload.FileUploadAction" > method="upload"> > upload.jsp > upload-success.jsp > > {code} > to this > {code} > class="org.apache.struts2.showcase.fileupload.FileUploadAction" > method="upload"> > upload.jsp > upload.jsp > > {code} > 3. Deploy & Upload file using the url > struts2-showcase/fileupload/upload.action > 4. View source, in the input tag generated by the s:file tag you'll see the > full path to the file that was uploaded. > {code} > value="/home/cmorris/Workspace/struts2-examples/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/struts2-showcase/upload__1bd5a0ad_13997105f96__8000_0002.tmp" > id="doUpload_upload"/> > {code} > > Workaround: > A workaround is simple, just add an empty value attribute to the file tag: > {code} > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (WW-3877) Remove altSyntax option
Lukasz Lenart created WW-3877: - Summary: Remove altSyntax option Key: WW-3877 URL: https://issues.apache.org/jira/browse/WW-3877 Project: Struts 2 Issue Type: Improvement Components: Core Actions Affects Versions: 2.3.4.1 Reporter: Lukasz Lenart Fix For: 2.5 Right now user can disable support for %{...} by setting up the struts.tag.altSyntax to false. This can lead to unexpected behaviour how value is parsed or treated as an expression. The option should be removed and all connected code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira