Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75201

Failure to impersonate anonymous in ResourceDomainRootAction

      Reported at https://community.jenkins.io/t/problems-with-anonymous-file-downloads/25029/3

      Jan 24, 2025 9:37:59 PM FINE jenkins.security.ResourceDomainRootAction
      Determined DBS URL: job/Tools/job/pca_cal_deb/lastSuccessfulBuild/artifact from restOfUrl: job/Tools/job/pca_cal_deb/lastSuccessfulBuild/artifact/bld/taitcal-version.deb and restOfPath: /bld/taitcal-version.deb
      Jan 24, 2025 9:37:59 PM FINE jenkins.security.ResourceDomainRootAction
      Performing a request as authentication: anonymous and restOfUrl: job/Tools/job/pca_cal_deb/lastSuccessfulBuild/artifact and restOfPath: /bld/taitcal-version.deb
      Jan 24, 2025 9:37:59 PM FINE jenkins.security.ResourceDomainRootAction
      Failed to impersonate anonymous
      org.springframework.security.core.userdetails.UsernameNotFoundException: User anonymous not found in directory.
          at PluginClassLoader for ldap//org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:107)
          at PluginClassLoader for ldap//hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1298)
          at PluginClassLoader for ldap//hudson.security.LDAPSecurityRealm$DelegateLDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1239)
          at jenkins.security.ImpersonatingUserDetailsService2.loadUserByUsername(ImpersonatingUserDetailsService2.java:29)
          at hudson.model.User.getUserDetailsForImpersonation2(User.java:431)
          at hudson.model.User.impersonate2(User.java:399)
          at jenkins.security.ResourceDomainRootAction$InternalResourceRequest.doDynamic(ResourceDomainRootAction.java:227) 

      There's probably no reason to impersonate anonymous (in particular if that's the current auth, which it never should not be).

          [JENKINS-75201] Failure to impersonate anonymous in ResourceDomainRootAction

          There are no comments yet on this issue.

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: