Source:
<code><START> public void checkAttributesValue(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws InternalErrorException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException { <END> this.checkMemberIsFromTheSameVoLikeResource(sess, member, resource); this.checkGroupIsFromTheSameVoLikeResource(sess, group, resource); for(Attribute attribute : attributes) { if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_RESOURCE_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, resource, member, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, resource, member, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_USER_FACILITY_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, facility, user, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, facility, user, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_USER_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, user, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, user, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, member, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, member, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_GROUP_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, member, group, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, member, group, attribute); } else { throw new WrongAttributeAssignmentException(attribute); } } }</code><technical_language>in other methods. group-resource attributes? is problem check too</technical_language>

Target:
public void checkAttributesValue(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws InternalErrorException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException, MemberResourceMismatchException { this.checkMemberIsFromTheSameVoLikeResource(sess, member, resource); this.checkGroupIsFromTheSameVoLikeResource(sess, group, resource); for(Attribute attribute : attributes) { if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_RESOURCE_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, resource, member, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, resource, member, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_USER_FACILITY_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, facility, user, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, facility, user, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_USER_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, user, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, user, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, member, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, member, attribute); } else if(getAttributesManagerImpl().isFromNamespace(sess, attribute, AttributesManager.NS_MEMBER_GROUP_ATTR)) { if(attribute.getValue() == null && !isTrulyRequiredAttribute(sess, member, group, attribute)) continue; getAttributesManagerImpl().checkAttributeValue(sess, member, group, attribute); } else { throw new WrongAttributeAssignmentException(attribute); } } }