You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "adam brin (JIRA)" <ji...@apache.org> on 2016/11/01 19:06:58 UTC
[jira] [Comment Edited] (WW-4707) Multiselect parameter behavior
different between struts 2.5.5 and 2.5.1
[ https://issues.apache.org/jira/browse/WW-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15626364#comment-15626364 ]
adam brin edited comment on WW-4707 at 11/1/16 7:06 PM:
--------------------------------------------------------
In our system, includedStatuses is initialized as an empty ArrayList e.g.:
{{private List<Status> includedStatues = new ArrayList<>();}}
URL: http://localhost:8080/search/results?&groups%5B0%5D.fieldTypes%5B1%5D=DATE_CREATED&groups%5B0%5D.createdDates%5B1%5D.start=2001&groups%5B0%5D.createdDates%5B1%5D.end=2009&__multiselect_includedStatuses=
*v.2.5.1* - Struts processes the url parameters and includedStatuses is still an empty ArrayList<>(); (so either it was set to be an empty array list, or .clear() was called on the List).
*v.2.5.5* - Struts processes the url parameters and includedStatuses is NULL.
was (Author: abrin):
In our system, includedStatuses is initialized as an empty ArrayList e.g.:
{{private List<Status> includedStatues = new ArrayList<>();}}
URL: http://localhost:8080/search/results?&groups%5B0%5D.fieldTypes%5B1%5D=DATE_CREATED&groups%5B0%5D.createdDates%5B1%5D.start=2001&groups%5B0%5D.createdDates%5B1%5D.end=2009&__multiselect_includedStatuses=
v.2.5.1 - Struts processes the url parameters and includedStatuses is still an empty ArrayList<>(); (so either it was set to be an empty array list, or .clear() was called on the List).
v.2.5.5 - Struts processes the url parameters and includedStatuses is NULL.
> 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)