shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Les Hazlewood (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SHIRO-423) INI ReflectionBuilder should not wrap reference values
Date Sun, 05 May 2013 01:25:13 GMT

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

Les Hazlewood resolved SHIRO-423.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0
                   1.2.2
    
> INI ReflectionBuilder should not wrap reference values
> ------------------------------------------------------
>
>                 Key: SHIRO-423
>                 URL: https://issues.apache.org/jira/browse/SHIRO-423
>             Project: Shiro
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.2.1
>            Reporter: Maison
>             Fix For: 1.2.2, 1.3.0
>
>
> When injecting a property whose setter expects say a Set, special handling is performed
(split string with comma and build a set before injection ; List, Map, byte[]... types are
also handled with special code).
> But this is performed before references are resolved, thus this does not work if myUrlsSetRef
is already a Set :
>   obj.urlsSet = $myUrlsSetRef
> ReflectionBuilder.applyProperty() builds a Set containing a single element $myUrlsSetRef,
then resolves $myUrlsSetRef : this wraps the referenced set into a new set with 1 element.
> Workaround : create a fake setter with Object argument type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message