mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[FIXED HUDSON-4354] in 1.340. User IDs are now case preserving but case insensitive
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24879 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
bcf698b488
commit
b5611e6a51
1 file changed
+2
-1
@@ -62,6 +62,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeMap;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@@ -496,7 +497,7 @@ public class User extends AbstractModelObject implements AccessControlled, Savea
|
||||
* Keyed by {@link User#id}. This map is used to ensure
|
||||
* singleton-per-id semantics of {@link User} objects.
|
||||
*/
|
||||
private static final Map<String,User> byName = new HashMap<String,User>();
|
||||
private static final Map<String,User> byName = new TreeMap<String,User>(String.CASE_INSENSITIVE_ORDER);
|
||||
|
||||
/**
|
||||
* Used to load/save user configuration.
|
||||
|
||||
Reference in new issue
Block a user