Failure to impersonate anonymous in ResourceDomainRootAction

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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).

            Assignee:
            Unassigned
            Reporter:
            Daniel Beck
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: