mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUAC-1115: Treat empty lists as blank.
This commit is contained in:
@@ -95,8 +95,6 @@ public class AuthenticationProviderService {
|
||||
|
||||
// Pull username attributes from properties
|
||||
List<String> usernameAttributes = confService.getUsernameAttributes();
|
||||
if (usernameAttributes.isEmpty())
|
||||
return null;
|
||||
|
||||
// We need exactly one base DN to derive the user DN
|
||||
if (usernameAttributes.size() != 1)
|
||||
|
@@ -56,7 +56,11 @@ public abstract class StringListProperty implements GuacamoleProperty<List<Strin
|
||||
return null;
|
||||
|
||||
// Split string into a list of individual values
|
||||
return Arrays.asList(DELIMITER_PATTERN.split(values));
|
||||
List<String> stringValues = Arrays.asList(DELIMITER_PATTERN.split(values));
|
||||
if (stringValues.isEmpty())
|
||||
return null;
|
||||
|
||||
return stringValues;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user