[JIRA] Closed: (JOST-174) ChainingMetadataProvider calls clear() on unmodifiable list
Chad La Joie (JIRA)
noreply at shibboleth.net
Sun Oct 23 23:43:25 BST 2011
[ https://issues.shibboleth.net/jira/browse/JOST-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chad La Joie closed JOST-174.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.5.2
fixed in rev 1558
> ChainingMetadataProvider calls clear() on unmodifiable list
> -----------------------------------------------------------
>
> Key: JOST-174
> URL: https://issues.shibboleth.net/jira/browse/JOST-174
> Project: OpenSAML 2 - Java
> Issue Type: Bug
> Reporter: philvarner at idp.protectnetwork.org
> Assignee: Chad La Joie
> Fix For: 2.5.2
>
>
> in method setProviders, code is:
> if (newProviders == null || newProviders.isEmpty()) {
> providers.clear();
> return;
> }
> but the default object for providers is:
> providers = Collections.EMPTY_LIST;
> This was changed between 2.3.1 and 2.5.1. In 2.3.1, providers was an empty array list.
> I believe the fix to this is to replace providers.clear() with providers = Collections.EMPTY_LIST.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list