Source:
<code>public List<Attribute> getAttributes(PerunSession sess, Resource resource, Member member, List<String> attrNames, boolean workWithUserAttributes) throws InternalErrorException, WrongAttributeAssignmentException { this.checkMemberIsFromTheSameVoLikeResource(sess, member, resource); if(attrNames.isEmpty()) return this.getAttributes(sess, resource, member, workWithUserAttributes); List<String> userAndMemberAttributeNames = new ArrayList<>(); List<String> memberResourceAttributeNames = new ArrayList<>(); List<String> userFacilityAttirbuteNames = new ArrayList<>(); for(String attributeName: attrNames) { if(attributeName.startsWith(AttributesManager.NS_USER_ATTR) || attributeName.startsWith(AttributesManager.NS_MEMBER_ATTR)) { userAndMemberAttributeNames.add(attributeName); } else if(attributeName.startsWith(AttributesManager.NS_MEMBER_RESOURCE_ATTR)) { memberResourceAttributeNames.add(attributeName); } else if(attributeName.startsWith(AttributesManager.NS_USER_FACILITY_ATTR)) { userFacilityAttirbuteNames.add(attributeName); <START> } else if(attributeName.startsWith(AttributesManager.NS_MEMBER_GROUP_ATTR)) { <END> } else { log.error("Attribute defined by " + attributeName + " is not in supported namespace. Skip it there!"); } } List<Attribute> attributes = new ArrayList<>(); if(!userAndMemberAttributeNames.isEmpty()) attributes.addAll(this.getAttributes(sess, member, userAndMemberAttributeNames, workWithUserAttributes)); if(!memberResourceAttributeNames.isEmpty()) attributes.addAll(getAttributesManagerImpl().getAttributes(sess, member, resource, memberResourceAttributeNames)); if(workWithUserAttributes && !userFacilityAttirbuteNames.isEmpty()) { User user = getPerunBl().getUsersManagerBl().getUserByMember(sess, member); Facility facility = getPerunBl().getResourcesManagerBl().getFacility(sess, resource); attributes.addAll(getAttributesManagerImpl().getAttributes(sess, user, facility, userFacilityAttirbuteNames)); } return attributes; }</code><technical_language>Please remove this, this method provide member_group attributes belongs else branch error is logged silently skipped</technical_language>

Target:
public List<Attribute> getAttributes(PerunSession sess, Resource resource, Member member, List<String> attrNames, boolean workWithUserAttributes) throws InternalErrorException, MemberResourceMismatchException { this.checkMemberIsFromTheSameVoLikeResource(sess, member, resource); if(attrNames.isEmpty()) return this.getAttributes(sess, resource, member, workWithUserAttributes); List<String> userAndMemberAttributeNames = new ArrayList<>(); List<String> memberResourceAttributeNames = new ArrayList<>(); List<String> userFacilityAttirbuteNames = new ArrayList<>(); for(String attributeName: attrNames) { if(attributeName.startsWith(AttributesManager.NS_USER_ATTR) || attributeName.startsWith(AttributesManager.NS_MEMBER_ATTR)) { userAndMemberAttributeNames.add(attributeName); } else if(attributeName.startsWith(AttributesManager.NS_MEMBER_RESOURCE_ATTR)) { memberResourceAttributeNames.add(attributeName); } else if(attributeName.startsWith(AttributesManager.NS_USER_FACILITY_ATTR)) { userFacilityAttirbuteNames.add(attributeName); } else { log.error("Attribute defined by " + attributeName + " is not in supported namespace. Skip it there!"); } } List<Attribute> attributes = new ArrayList<>(); if(!userAndMemberAttributeNames.isEmpty()) attributes.addAll(this.getAttributes(sess, member, userAndMemberAttributeNames, workWithUserAttributes)); if(!memberResourceAttributeNames.isEmpty()) attributes.addAll(getAttributesManagerImpl().getAttributes(sess, member, resource, memberResourceAttributeNames)); if(workWithUserAttributes && !userFacilityAttirbuteNames.isEmpty()) { User user = getPerunBl().getUsersManagerBl().getUserByMember(sess, member); Facility facility = getPerunBl().getResourcesManagerBl().getFacility(sess, resource); attributes.addAll(getAttributesManagerImpl().getAttributes(sess, user, facility, userFacilityAttirbuteNames)); } return attributes; }