mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java
@@ -113,7 +113,9 @@
            String attribute = attr.toLowerCase();
            if(attribute.equals("*")) {
                if(!allUserAttributes)
                    allUserAttributes=true;
                {
                  allUserAttributes=true;
                }
                else {
                    LocalizableMessage message =
                        WARN_ACI_TARGETATTR_INVALID_ATTR_TOKEN.get(attrStr);
@@ -121,7 +123,9 @@
                }
            } else if(attribute.equals("+")) {
                if(!allOpAttributes)
                    allOpAttributes=true;
                {
                  allOpAttributes=true;
                }
                else {
                    LocalizableMessage message =
                        WARN_ACI_TARGETATTR_INVALID_ATTR_TOKEN.get(attrStr);
@@ -133,9 +137,13 @@
                    attrType = DirectoryServer.getDefaultAttributeType(attribute);
                }
                if(attrType.isOperational())
                    opAttributes.add(attrType);
                {
                  opAttributes.add(attrType);
                }
                else
                    attributes.add(attrType);
                {
                  attributes.add(attrType);
                }
            }
        }
    }