GUACAMOLE-1728: Allow Null User Object attributes to be saved.

This commit is contained in:
Alex Leitner
2022-12-28 20:15:26 +00:00
parent c2f2defcba
commit bb5aea96f1

View File

@@ -145,8 +145,9 @@ public abstract class DirectoryObjectTranslator<InternalType extends Identifiabl
String attributeValue = attributes.get(attributeName); String attributeValue = attributes.get(attributeName);
// Include attribute value within filtered map only if // Include attribute value within filtered map only if
// (1) defined and (2) present within provided map // defined or present within provided map
if (attributeValue != null) if (attributeValue != null ||
attributes.containsKey(attributeName))
filtered.put(attributeName, attributeValue); filtered.put(attributeName, attributeValue);
} }