[jira] [Commented] (WW-4636) File upload error message always in default language

2016-11-07 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645266#comment-15645266
 ] 

Hudson commented on WW-4636:


SUCCESS: Integrated in Jenkins build Struts-JDK7-master #546 (See 
[https://builds.apache.org/job/Struts-JDK7-master/546/])
WW-4636 - File upload error message always in default language (amashchenko: 
rev 835cc7cd096ba274ffd71e54115dbefc63cadffd)
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequest.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java
* (edit) 
plugins/pell-multipart/src/main/java/org/apache/struts2/dispatcher/multipart/PellMultiPartRequest.java
* (edit) 
core/src/main/java/org/apache/struts2/interceptor/FileUploadInterceptor.java
* (edit) 
core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java
* (add) core/src/main/java/org/apache/struts2/dispatcher/LocalizedMessage.java
WW-4636 - File upload error message always in default language (lukaszlenart: 
rev 33ac7ac49aabfcf792d38fa44d271a93433ffe56)
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
* (edit) 
plugins/pell-multipart/src/main/java/org/apache/struts2/dispatcher/multipart/PellMultiPartRequest.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequest.java
* (edit) 
core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java
* (add) core/src/main/java/org/apache/struts2/dispatcher/LocalizedMessage.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java
* (edit) 
core/src/main/java/org/apache/struts2/interceptor/FileUploadInterceptor.java
* (edit) 
core/src/main/java/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.java


> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4709) Invalid field value for field "id"

2016-11-07 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645268#comment-15645268
 ] 

Hudson commented on WW-4709:


SUCCESS: Integrated in Jenkins build Struts-JDK7-master #546 (See 
[https://builds.apache.org/job/Struts-JDK7-master/546/])
WW-4709 Defines toString as it's used in JSON serialisation (lukaszlenart: rev 
b287a9546a5212bb8c045194f6a6e39aa578017d)
* (edit) core/src/main/java/org/apache/struts2/dispatcher/Parameter.java
* (edit) core/src/main/java/org/apache/struts2/dispatcher/HttpParameters.java


> Invalid field value for field "id"
> --
>
> Key: WW-4709
> URL: https://issues.apache.org/jira/browse/WW-4709
> Project: Struts 2
>  Issue Type: Bug
>  Components: Plugin - REST
>Affects Versions: 2.5.5
>Reporter: winix
> Fix For: 2.5.6
>
>
> The "id" field of Model(ModelDriven) is set to the wrong value.
> E.g: /struts2-rest-showcase/orders/3.json
> {code:javascript}
> {"amount":33,"clientName":"Bob","id":"org.apache.struts2.dispatcher.Parameter$Request@53e65f44"}
> {code}
> The "id" value should be 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4702) List based parameters no longer work when there is only one value.

2016-11-07 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645267#comment-15645267
 ] 

Hudson commented on WW-4702:


SUCCESS: Integrated in Jenkins build Struts-JDK7-master #546 (See 
[https://builds.apache.org/job/Struts-JDK7-master/546/])
WW-4702 WW-4707 Fixes issue with with list based parameters (lukaszlenart: rev 
b5240560ab5e63e66d5108d15fc78a6622019547)
* (add) 
core/src/main/java/com/opensymphony/xwork2/ognl/accessor/HttpParametersPropertyAccessor.java
* (edit) core/src/main/resources/struts-default.xml
* (edit) core/src/test/java/com/opensymphony/xwork2/SimpleAction.java
* (edit) 
core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
* (edit) 
core/src/test/java/com/opensymphony/xwork2/interceptor/ParametersInterceptorTest.java
* (add) 
core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java
* (edit) 
core/src/main/java/com/opensymphony/xwork2/config/providers/XWorkConfigurationProvider.java


> List based parameters no longer work when there is only one value.
> --
>
> Key: WW-4702
> URL: https://issues.apache.org/jira/browse/WW-4702
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.5.5
>Reporter: Adam Greenfield
>Assignee: Lukasz Lenart
> Fix For: 2.5.6
>
>
> If an action has a List parameter, but is only called with one value, the 
> parameter is never set.
> Consider the basic action below.
> {noformat}
> public class TestAction
> {
>   private List object;
>   public String execute()
>   {
>   for (SomeObject user : object)
>   {
>   System.out.println("as list" + user.field);
>   }
>   return "success";
>   }
>   public static class SomeObject{
>   private String field;
>   public void setField(String field)
>   {
>   this.field = field;
>   }
>   }
>   public List getObject()
>   {
>   return object;
>   }
>   public void setObject(List object)
>   {
>   this.object = object;
>   }
> }
> {noformat}
> Performing a GET on "/test.action?object.field=a" 
> Expected outcome: "object" list should be populated with 1 object. with a 
> field value of "a"
> Actual Outcome: object list is empty.
> Performing a GET on "/test.action?object.field=a=b" works as 
> expected (list has 2 entries). 
> The following changes to 
> [ParametersInterceptor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java?r=6ab6ec879cc9eb1997b88856173d2123b32509ee#to206]
>  break this behavior. because 
> [XWorkListPropertyAccessor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java?r=c7fdf7ffc5aa6744e9f3dc16c490aa0abc65f993#to138]
>  Expects an Array of strings for value (which was previously sent when 
> HttpParameters was a map instead of an Object).
> {noformat}
> if (value instanceof Parameter.File) {
>  newStack.setParameter(name, value.getObject());
> } else  if (value.isMultiple()) {
> newStack.setParameter(name, value.getMultipleValues());
> } else {
>  newStack.setParameter(name, value.getValue());
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (WW-4636) File upload error message always in default language

2016-11-07 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-4636.
---
Resolution: Fixed

PR merged, thanks!

> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4636) File upload error message always in default language

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645122#comment-15645122
 ] 

ASF subversion and git services commented on WW-4636:
-

Commit 70400f4a037784719d4b7da341df7efb6353dcf2 in struts's branch 
refs/heads/master from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=70400f4 ]

WW-4636 Fixes problem with File upload error message are always in default 
language


> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4636) File upload error message always in default language

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645120#comment-15645120
 ] 

ASF subversion and git services commented on WW-4636:
-

Commit 835cc7cd096ba274ffd71e54115dbefc63cadffd in struts's branch 
refs/heads/master from [~aleksandr-m]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=835cc7c ]

WW-4636 - File upload error message always in default language


> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4636) File upload error message always in default language

2016-11-07 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645124#comment-15645124
 ] 

ASF GitHub Bot commented on WW-4636:


Github user asfgit closed the pull request at:

https://github.com/apache/struts/pull/113


> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4636) File upload error message always in default language

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645111#comment-15645111
 ] 

ASF subversion and git services commented on WW-4636:
-

Commit 33ac7ac49aabfcf792d38fa44d271a93433ffe56 in struts's branch 
refs/heads/master from [~aleksandr-m]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=33ac7ac ]

WW-4636 - File upload error message always in default language


> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4709) Invalid field value for field "id"

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645112#comment-15645112
 ] 

ASF subversion and git services commented on WW-4709:
-

Commit b287a9546a5212bb8c045194f6a6e39aa578017d in struts's branch 
refs/heads/master from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=b287a95 ]

WW-4709 Defines toString as it's used in JSON serialisation


> Invalid field value for field "id"
> --
>
> Key: WW-4709
> URL: https://issues.apache.org/jira/browse/WW-4709
> Project: Struts 2
>  Issue Type: Bug
>  Components: Plugin - REST
>Affects Versions: 2.5.5
>Reporter: winix
> Fix For: 2.5.6
>
>
> The "id" field of Model(ModelDriven) is set to the wrong value.
> E.g: /struts2-rest-showcase/orders/3.json
> {code:javascript}
> {"amount":33,"clientName":"Bob","id":"org.apache.struts2.dispatcher.Parameter$Request@53e65f44"}
> {code}
> The "id" value should be 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4702) List based parameters no longer work when there is only one value.

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645114#comment-15645114
 ] 

ASF subversion and git services commented on WW-4702:
-

Commit b5240560ab5e63e66d5108d15fc78a6622019547 in struts's branch 
refs/heads/master from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=b524056 ]

WW-4702 WW-4707 Fixes issue with with list based parameters


> List based parameters no longer work when there is only one value.
> --
>
> Key: WW-4702
> URL: https://issues.apache.org/jira/browse/WW-4702
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.5.5
>Reporter: Adam Greenfield
>Assignee: Lukasz Lenart
> Fix For: 2.5.6
>
>
> If an action has a List parameter, but is only called with one value, the 
> parameter is never set.
> Consider the basic action below.
> {noformat}
> public class TestAction
> {
>   private List object;
>   public String execute()
>   {
>   for (SomeObject user : object)
>   {
>   System.out.println("as list" + user.field);
>   }
>   return "success";
>   }
>   public static class SomeObject{
>   private String field;
>   public void setField(String field)
>   {
>   this.field = field;
>   }
>   }
>   public List getObject()
>   {
>   return object;
>   }
>   public void setObject(List object)
>   {
>   this.object = object;
>   }
> }
> {noformat}
> Performing a GET on "/test.action?object.field=a" 
> Expected outcome: "object" list should be populated with 1 object. with a 
> field value of "a"
> Actual Outcome: object list is empty.
> Performing a GET on "/test.action?object.field=a=b" works as 
> expected (list has 2 entries). 
> The following changes to 
> [ParametersInterceptor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java?r=6ab6ec879cc9eb1997b88856173d2123b32509ee#to206]
>  break this behavior. because 
> [XWorkListPropertyAccessor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java?r=c7fdf7ffc5aa6744e9f3dc16c490aa0abc65f993#to138]
>  Expects an Array of strings for value (which was previously sent when 
> HttpParameters was a map instead of an Object).
> {noformat}
> if (value instanceof Parameter.File) {
>  newStack.setParameter(name, value.getObject());
> } else  if (value.isMultiple()) {
> newStack.setParameter(name, value.getMultipleValues());
> } else {
>  newStack.setParameter(name, value.getValue());
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4707) Multiselect parameter behavior different between struts 2.5.5 and 2.5.1

2016-11-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15645115#comment-15645115
 ] 

ASF subversion and git services commented on WW-4707:
-

Commit b5240560ab5e63e66d5108d15fc78a6622019547 in struts's branch 
refs/heads/master from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=b524056 ]

WW-4702 WW-4707 Fixes issue with with list based parameters


> Multiselect parameter behavior different between struts 2.5.5 and 2.5.1
> ---
>
> Key: WW-4707
> URL: https://issues.apache.org/jira/browse/WW-4707
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.5.5
>Reporter: adam brin
>Assignee: Lukasz Lenart
>Priority: Minor
> Fix For: 2.5.6
>
>
> Note: not 100% sure this is a bug, but it's a definite change in behavior:
> The implementation of Parameter.Request changes behaviors such that 
> "clearing" a multiselect parameter {{__multiselect_includedStatuses=}} sets 
> {{includedStatuses = null}} while the older behavior did something different 
> (probably called "clear()."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (WW-4636) File upload error message always in default language

2016-11-07 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-4636:
--
Fix Version/s: (was: 2.3.x)
   (was: 2.5.x)
   2.5.6

> File upload error message always in default language
> 
>
> Key: WW-4636
> URL: https://issues.apache.org/jira/browse/WW-4636
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.3.28
>Reporter: Pierre-Yves Soblet
>Assignee: Aleksandr Mashchenko
> Fix For: 2.5.6
>
> Attachments: Struts2i18nTest.zip
>
>
> Struts 2 allows to redefine error messages when an upload fails (as 
> documented in https://cwiki.apache.org/confluence/display/WW/File+Upload).
> For instance, if I upload a file with a size greater than allowed by the 
> configuration using fileUpload interceptor and commons-fileupload dependency, 
> the following key of my resource bundle is used :
> {code}
> struts.messages.upload.error.SizeLimitExceededException=File size exceeded 
> (in i18n.properties).
> {code}
> However, when the current language is not the default one, the translated key 
> (in i18n_fr.properties for instance) is not taken into account (the default 
> language is used instead).
> The issue seems similar to WW-3177 (that was fixed in 2.3.7).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (WW-4708) struts2-archetype-blank not found for struts v2.5.5

2016-11-07 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-4708.
---
Resolution: Fixed

Done, new archetypes were published :)

> struts2-archetype-blank not found for struts  v2.5.5
> 
>
> Key: WW-4708
> URL: https://issues.apache.org/jira/browse/WW-4708
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.5.5
>Reporter: Jim deVos
> Fix For: 2.5.6
>
>
> Following the steps in the [developer 
> guide|https://struts.apache.org/docs/struts-2-maven-archetypes.html],  I 
> tried to generate the "blank" sample app using the archetype catalog,  but I 
> receive an error when choosing any of the options.  
> For example, when I run the following command: 
> {code}
> mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/
> {code}
> I get a list of archetypes, as expected.
> {quote}
> Choose archetype:
> 1: http://struts.apache.org/ -> org.apache.struts:struts2-archetype-blank 
> (Struts 2 Archetypes - Blank)
> 2: http://struts.apache.org/ -> 
> org.apache.struts:struts2-archetype-convention (Struts 2 Archetypes - Blank 
> Convention)
> 3: http://struts.apache.org/ -> org.apache.struts:struts2-archetype-dbportlet 
> (Struts 2 Archetypes - Database Portlet)
> 4: http://struts.apache.org/ -> org.apache.struts:struts2-archetype-plugin 
> (Struts 2 Archetypes - Plugin)
> 5: http://struts.apache.org/ -> org.apache.struts:struts2-archetype-portlet 
> (Struts 2 Archetypes - Portlet)
> 6: http://struts.apache.org/ -> org.apache.struts:struts2-archetype-starter 
> (Struts 2 Archetypes - Starter)
> Choose a number or apply filter (format: [groupId:]artifactId, case sensitive 
> contains): : 
> {quote}
> However, when choosing any of the options (e.g. the "blank" webapp),  I get 
> the following response:
> {code}
> Downloading: 
> https://repository.apache.org/content/groups/public/org/apache/struts/struts2-archetype-blank/2.5.5/struts2-archetype-blank-2.5.5.jar
> Downloading: 
> https://repo.maven.apache.org/maven2/org/apache/struts/struts2-archetype-blank/2.5.5/struts2-archetype-blank-2.5.5.jar
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 29.977 s
> [INFO] Finished at: 2016-11-01T14:22:59-07:00
> [INFO] Final Memory: 17M/305M
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on 
> project standalone-pom: The desired archetype does not exist 
> (org.apache.struts:struts2-archetype-blank:2.5.5) -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> {code}
> The archtype:generate goal does work when I specify v2.5.1 instead. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (WW-4702) List based parameters no longer work when there is only one value.

2016-11-07 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-4702.
---
Resolution: Fixed

> List based parameters no longer work when there is only one value.
> --
>
> Key: WW-4702
> URL: https://issues.apache.org/jira/browse/WW-4702
> Project: Struts 2
>  Issue Type: Bug
>Affects Versions: 2.5.5
>Reporter: Adam Greenfield
>Assignee: Lukasz Lenart
> Fix For: 2.5.6
>
>
> If an action has a List parameter, but is only called with one value, the 
> parameter is never set.
> Consider the basic action below.
> {noformat}
> public class TestAction
> {
>   private List object;
>   public String execute()
>   {
>   for (SomeObject user : object)
>   {
>   System.out.println("as list" + user.field);
>   }
>   return "success";
>   }
>   public static class SomeObject{
>   private String field;
>   public void setField(String field)
>   {
>   this.field = field;
>   }
>   }
>   public List getObject()
>   {
>   return object;
>   }
>   public void setObject(List object)
>   {
>   this.object = object;
>   }
> }
> {noformat}
> Performing a GET on "/test.action?object.field=a" 
> Expected outcome: "object" list should be populated with 1 object. with a 
> field value of "a"
> Actual Outcome: object list is empty.
> Performing a GET on "/test.action?object.field=a=b" works as 
> expected (list has 2 entries). 
> The following changes to 
> [ParametersInterceptor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java?r=6ab6ec879cc9eb1997b88856173d2123b32509ee#to206]
>  break this behavior. because 
> [XWorkListPropertyAccessor|https://fisheye6.atlassian.com/browse/struts/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java?r=c7fdf7ffc5aa6744e9f3dc16c490aa0abc65f993#to138]
>  Expects an Array of strings for value (which was previously sent when 
> HttpParameters was a map instead of an Object).
> {noformat}
> if (value instanceof Parameter.File) {
>  newStack.setParameter(name, value.getObject());
> } else  if (value.isMultiple()) {
> newStack.setParameter(name, value.getMultipleValues());
> } else {
>  newStack.setParameter(name, value.getValue());
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (WW-4709) Invalid field value for field "id"

2016-11-07 Thread Lukasz Lenart (JIRA)

 [ 
https://issues.apache.org/jira/browse/WW-4709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-4709.
---
Resolution: Fixed

> Invalid field value for field "id"
> --
>
> Key: WW-4709
> URL: https://issues.apache.org/jira/browse/WW-4709
> Project: Struts 2
>  Issue Type: Bug
>  Components: Plugin - REST
>Affects Versions: 2.5.5
>Reporter: winix
> Fix For: 2.5.6
>
>
> The "id" field of Model(ModelDriven) is set to the wrong value.
> E.g: /struts2-rest-showcase/orders/3.json
> {code:javascript}
> {"amount":33,"clientName":"Bob","id":"org.apache.struts2.dispatcher.Parameter$Request@53e65f44"}
> {code}
> The "id" value should be 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)