Skip to content

a bug in UserData #68

Open
Open
@ritow

Description

@ritow

org.elasticsearch.plugin.elasticfence.data.UserData.java

public UserData(String userName, String rawPassword, String... filters) {
setUsername(userName);
setPassword(rawPassword);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZZ");
setCreated(sdf.format(new Date()));
if (filters == null) { // TODO , this should be "filters != null"
Set filterSet = Sets.newConcurrentHashSet(Arrays.asList(filters));
setFilters(filterSet);
} else {
Set filterSet = Sets.newConcurrentHashSet();
setFilters(filterSet);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions