Skip to content
Permalink
Browse files

[JENKINS-43936] Only migrate legacy users once per restart

(cherry picked from commit f091c9d)
  • Loading branch information...
fbelzunc authored and olivergondza committed Apr 28, 2017
1 parent 6f44ff7 commit 1c56f01283719e8ade32e872ef9fa636a4437d2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/User.java
@@ -432,7 +432,7 @@ public synchronized void doSubmitDescription( StaplerRequest req, StaplerRespons
byNameLock.readLock().unlock();
}
final File configFile = getConfigFileFor(id);
if (!configFile.isFile() && !configFile.getParentFile().isDirectory()) {
if (u == null && !configFile.isFile() && !configFile.getParentFile().isDirectory()) {
// check for legacy users and migrate if safe to do so.
File[] legacy = getLegacyConfigFilesFor(id);
if (legacy != null && legacy.length > 0) {

0 comments on commit 1c56f01

Please sign in to comment.
You can’t perform that action at this time.