Skip to content
Permalink
Browse files

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

  • Loading branch information...
fbelzunc committed Apr 28, 2017
1 parent 1899f36 commit f091c9de34e2c8fcaf93966180226dea52f90e38
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 f091c9d

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