syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-1110) Error replacing group/auxclass/resource during self-management operation
Date Tue, 27 Jun 2017 07:46:00 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16064412#comment-16064412
] 

ASF GitHub Bot commented on SYNCOPE-1110:
-----------------------------------------

Github user ilgrosso commented on a diff in the pull request:

    https://github.com/apache/syncope/pull/47#discussion_r124199801
  
    --- Diff: client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfReadResource.java
---
    @@ -137,12 +137,13 @@ public void writeData(final Attributes attributes) throws IOException
{
         private void customizeAttrs(final Set<AttrTO> attrs,
                 final Map<String, CustomAttribute> customForm) {
     
    -        CollectionUtils.filter(attrs, new Predicate<AttrTO>() {
    -
    -            @Override
    -            public boolean evaluate(final AttrTO attr) {
    -                return customForm.containsKey(attr.getSchema());
    +        Set<AttrTO> attrsToAdd = new HashSet<>();
    --- End diff --
    
    You could use `CollectionUtils.collect()` here.


> Error replacing group/auxclass/resource during self-management operation
> ------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1110
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1110
>             Project: Syncope
>          Issue Type: Bug
>          Components: enduser
>    Affects Versions: 2.0.3
>            Reporter: fabio martelli
>             Fix For: 2.0.4, 2.1.0
>
>
> Steps to reproduce:
> # perform a self registration by specifying 2 groups, 2 aux classes and 2 resources
> # submit and perform an approval with admin user
> # perform a self management by replacing one group/auxclass/resource with another one
> # submbit and perform an approval with admin user
> # check the expected result into the administration console ....
> Groups, auxclasses and resources assigned to the approved user will be three instead
of two.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message