You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Lukasz Lenart <lu...@apache.org> on 2016/10/05 08:08:22 UTC

Struts 2.5.3 & 2.3.31 ready for test

Hi,

Please take a time and test the bits - any help is appreciated. Please
report any problems back. I'll call for vote in a week if no problems
will be spotted.

Staging Maven repo
https://repository.apache.org/content/groups/staging/

Standalone artifacts
https://dist.apache.org/repos/dist/dev/struts/2.5.3/
https://dist.apache.org/repos/dist/dev/struts/2.3.31/

Release notes
https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.3
https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.31


Thanks in advance
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
I saw no complains about 2.3.31 so I'm going to call for vote :)

2016-10-05 10:08 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> Hi,
>
> Please take a time and test the bits - any help is appreciated. Please
> report any problems back. I'll call for vote in a week if no problems
> will be spotted.
>
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
>
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/2.5.3/
> https://dist.apache.org/repos/dist/dev/struts/2.3.31/
>
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.3
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.31
>
>
> Thanks in advance
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
Done, test build for 2.5.4 is ready -  I will send a separated announcement

2016-10-06 17:06 GMT+02:00 Louis Smith <dr...@gmail.com>:
> One of my clients will take a LOT of "convincing" as they have 70 major
> projects using Struts 2, and all use parameteraware.
>
> Louis
>
> Dr. Louis Smith, ThD
> Chief Technology Officer, Kyra Solutions, Inc.
>
> On Thu, Oct 6, 2016 at 4:27 AM, Lukasz Lenart <lu...@apache.org>
> wrote:
>
>> 2016-10-06 10:20 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
>> > 2016-10-06 10:17 GMT+02:00 Christoph Nenning <
>> Christoph.Nenning@lex-com.net>:
>> >>> > For the HttpParameters ParameterAware change
>> >>> >
>> >>> > private Map<String, Object> params = Collections.emptyMap();
>> >>> > ...
>> >>> > setParameters(HttpParameters parameters) {
>> >>> >    this.params = parameters.toMap();
>> >>> > }
>> >>> >
>> >>> > and use as before? (although it was a String, String[]).
>> >>>
>> >>> Hm... good point, maybe it makes sense revert it back to "String,
>> >>> String[]" to avoid conflicts and add a new interface when you want to
>> >>> use HttpParameters, wdyt?
>> >>>
>> >>>
>> >>
>> >> Yes, sounds like a good idea to have some kind of step-by-step migration
>> >> for such a change.
>> >>
>> >> On the other side: we need to convince users to enable it and need some
>> >> plan how and when to make it the default.
>> >
>> > Marking current interface as deprecated should be enough. In Struts
>> > 2.6 we can drop it.
>>
>> If no objections I will drop the current test build and will introduce
>> the above changes and then prepare a new test build
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Louis Smith <dr...@gmail.com>.
One of my clients will take a LOT of "convincing" as they have 70 major
projects using Struts 2, and all use parameteraware.

Louis

Dr. Louis Smith, ThD
Chief Technology Officer, Kyra Solutions, Inc.

On Thu, Oct 6, 2016 at 4:27 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> 2016-10-06 10:20 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> > 2016-10-06 10:17 GMT+02:00 Christoph Nenning <
> Christoph.Nenning@lex-com.net>:
> >>> > For the HttpParameters ParameterAware change
> >>> >
> >>> > private Map<String, Object> params = Collections.emptyMap();
> >>> > ...
> >>> > setParameters(HttpParameters parameters) {
> >>> >    this.params = parameters.toMap();
> >>> > }
> >>> >
> >>> > and use as before? (although it was a String, String[]).
> >>>
> >>> Hm... good point, maybe it makes sense revert it back to "String,
> >>> String[]" to avoid conflicts and add a new interface when you want to
> >>> use HttpParameters, wdyt?
> >>>
> >>>
> >>
> >> Yes, sounds like a good idea to have some kind of step-by-step migration
> >> for such a change.
> >>
> >> On the other side: we need to convince users to enable it and need some
> >> plan how and when to make it the default.
> >
> > Marking current interface as deprecated should be enough. In Struts
> > 2.6 we can drop it.
>
> If no objections I will drop the current test build and will introduce
> the above changes and then prepare a new test build
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
2016-10-06 10:20 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> 2016-10-06 10:17 GMT+02:00 Christoph Nenning <Ch...@lex-com.net>:
>>> > For the HttpParameters ParameterAware change
>>> >
>>> > private Map<String, Object> params = Collections.emptyMap();
>>> > ...
>>> > setParameters(HttpParameters parameters) {
>>> >    this.params = parameters.toMap();
>>> > }
>>> >
>>> > and use as before? (although it was a String, String[]).
>>>
>>> Hm... good point, maybe it makes sense revert it back to "String,
>>> String[]" to avoid conflicts and add a new interface when you want to
>>> use HttpParameters, wdyt?
>>>
>>>
>>
>> Yes, sounds like a good idea to have some kind of step-by-step migration
>> for such a change.
>>
>> On the other side: we need to convince users to enable it and need some
>> plan how and when to make it the default.
>
> Marking current interface as deprecated should be enough. In Struts
> 2.6 we can drop it.

If no objections I will drop the current test build and will introduce
the above changes and then prepare a new test build


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
2016-10-06 10:17 GMT+02:00 Christoph Nenning <Ch...@lex-com.net>:
>> > For the HttpParameters ParameterAware change
>> >
>> > private Map<String, Object> params = Collections.emptyMap();
>> > ...
>> > setParameters(HttpParameters parameters) {
>> >    this.params = parameters.toMap();
>> > }
>> >
>> > and use as before? (although it was a String, String[]).
>>
>> Hm... good point, maybe it makes sense revert it back to "String,
>> String[]" to avoid conflicts and add a new interface when you want to
>> use HttpParameters, wdyt?
>>
>>
>
> Yes, sounds like a good idea to have some kind of step-by-step migration
> for such a change.
>
> On the other side: we need to convince users to enable it and need some
> plan how and when to make it the default.

Marking current interface as deprecated should be enough. In Struts
2.6 we can drop it.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Christoph Nenning <Ch...@lex-com.net>.
> > For the HttpParameters ParameterAware change
> >
> > private Map<String, Object> params = Collections.emptyMap();
> > ...
> > setParameters(HttpParameters parameters) {
> >    this.params = parameters.toMap();
> > }
> >
> > and use as before? (although it was a String, String[]).
> 
> Hm... good point, maybe it makes sense revert it back to "String,
> String[]" to avoid conflicts and add a new interface when you want to
> use HttpParameters, wdyt?
> 
> 

Yes, sounds like a good idea to have some kind of step-by-step migration 
for such a change.

On the other side: we need to convince users to enable it and need some 
plan how and when to make it the default.


Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
2016-10-06 9:58 GMT+02:00 Greg Huber <gr...@gmail.com>:
> Well, I will do this:
>
> String[] p = (String[]) this.params.get(key);
>         if (p != null && p.length > 0) {
>             return p[0];
>         }
>
> So if its not an string I may get a cast exception.  Are they always
> strings if its from the request?

In most cases it should be Strings but there is a case with file
upload where FileUploadInterceptors put streams into Parameters :\


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Greg Huber <gr...@gmail.com>.
Well, I will do this:

String[] p = (String[]) this.params.get(key);
        if (p != null && p.length > 0) {
            return p[0];
        }

So if its not an string I may get a cast exception.  Are they always
strings if its from the request?

On 6 October 2016 at 08:55, Lukasz Lenart <lu...@apache.org> wrote:

> 2016-10-06 9:48 GMT+02:00 Greg Huber <gr...@gmail.com>:
> > For the HttpParameters ParameterAware change
> >
> > private Map<String, Object> params = Collections.emptyMap();
> > ...
> > setParameters(HttpParameters parameters) {
> >    this.params = parameters.toMap();
> > }
> >
> > and use as before? (although it was a String, String[]).
>
> Hm... good point, maybe it makes sense revert it back to "String,
> String[]" to avoid conflicts and add a new interface when you want to
> use HttpParameters, wdyt?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Lukasz Lenart <lu...@apache.org>.
2016-10-06 9:48 GMT+02:00 Greg Huber <gr...@gmail.com>:
> For the HttpParameters ParameterAware change
>
> private Map<String, Object> params = Collections.emptyMap();
> ...
> setParameters(HttpParameters parameters) {
>    this.params = parameters.toMap();
> }
>
> and use as before? (although it was a String, String[]).

Hm... good point, maybe it makes sense revert it back to "String,
String[]" to avoid conflicts and add a new interface when you want to
use HttpParameters, wdyt?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.5.3 & 2.3.31 ready for test

Posted by Greg Huber <gr...@gmail.com>.
For the HttpParameters ParameterAware change

private Map<String, Object> params = Collections.emptyMap();
...
setParameters(HttpParameters parameters) {
   this.params = parameters.toMap();
}

and use as before? (although it was a String, String[]).

On 5 October 2016 at 09:08, Lukasz Lenart <lu...@apache.org> wrote:

> Hi,
>
> Please take a time and test the bits - any help is appreciated. Please
> report any problems back. I'll call for vote in a week if no problems
> will be spotted.
>
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
>
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/2.5.3/
> https://dist.apache.org/repos/dist/dev/struts/2.3.31/
>
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.3
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.31
>
>
> Thanks in advance
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>