Skip to content

Commit

Permalink
[JENKINS-43936] Only migrate legacy users once per restart
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelzunc committed Apr 28, 2017
1 parent 1899f36 commit f091c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/User.java
Expand Up @@ -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) {
Expand Down

0 comments on commit f091c9d

Please sign in to comment.