Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
222a3be5
"README.md" did not exist on "fdb1d8a25f00dc3325387d5ba4b22cabec6f4af5"
Commit
222a3be5
authored
12 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug: remove outdated email key from map when calling addOrUpdateUser() with new email address.
SVN: 28147
parent
37cfe0f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
authentication/source/java/ch/systemsx/cisd/authentication/file/LineBasedUserStore.java
+5
-1
5 additions, 1 deletion
...systemsx/cisd/authentication/file/LineBasedUserStore.java
with
5 additions
and
1 deletion
authentication/source/java/ch/systemsx/cisd/authentication/file/LineBasedUserStore.java
+
5
−
1
View file @
222a3be5
...
@@ -160,7 +160,11 @@ final class LineBasedUserStore<T extends UserEntry> implements IUserStore<T>
...
@@ -160,7 +160,11 @@ final class LineBasedUserStore<T extends UserEntry> implements IUserStore<T>
assert
user
!=
null
;
assert
user
!=
null
;
updateMaps
();
updateMaps
();
idToEntryMap
.
put
(
user
.
getUserId
(),
user
);
final
T
oldUserOrNull
=
idToEntryMap
.
put
(
user
.
getUserId
(),
user
);
if
(
oldUserOrNull
!=
null
&&
StringUtils
.
isNotBlank
(
oldUserOrNull
.
getEmail
()))
{
emailToEntryMap
.
remove
(
oldUserOrNull
.
getEmail
().
toLowerCase
());
}
if
(
StringUtils
.
isNotBlank
(
user
.
getEmail
()))
if
(
StringUtils
.
isNotBlank
(
user
.
getEmail
()))
{
{
if
(
emailToEntryMap
.
put
(
user
.
getEmail
().
toLowerCase
(),
user
)
!=
null
)
if
(
emailToEntryMap
.
put
(
user
.
getEmail
().
toLowerCase
(),
user
)
!=
null
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment