[JIRA] Commented: (JOST-174) ChainingMetadataProvider calls clear() on unmodifiable list
philvarner@idp.protectnetwork.org (JIRA)
noreply at shibboleth.net
Sun Oct 23 20:27:25 BST 2011
[ https://issues.shibboleth.net/jira/browse/JOST-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669#comment-13669 ]
philvarner at idp.protectnetwork.org commented on JOST-174:
--------------------------------------------------------
This bug breaks the Spring Security SAML Extension library.
> 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
>
> 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