Skip to content

Commit

Permalink
Merge pull request #3317 from daniel-beck/JENKINS-32599
Browse files Browse the repository at this point in the history
[JENKINS-32599] Ignore misplaced users/config.xml file
  • Loading branch information
oleg-nenashev committed Mar 7, 2018
2 parents 7add30c + 35a38f0 commit 02eebec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/hudson/model/User.java
Expand Up @@ -1092,6 +1092,9 @@ public static void scanAll() {
File[] subdirs = getRootDir().listFiles((FileFilter) DirectoryFileFilter.INSTANCE);
if (subdirs != null) {
for (File subdir : subdirs) {
if (subdir.equals(getRootDir())) {
continue; // ignore the parent directory in case of stray config.xml
}
File configFile = new File(subdir, "config.xml");
if (configFile.exists()) {
String name = strategy.idFromFilename(subdir.getName());
Expand Down

0 comments on commit 02eebec

Please sign in to comment.