-
Bug
-
Resolution: Fixed
-
Trivial
-
None
-
-
2.204.vef3c36862054
Recommendation: use Jenkins.get().getAuthentication() and then use ACL.isAnonymous2(), will take care of user with "anonymous" as their real login coming from third party security realm (it's forbidden in the embedded security realm)
Also similar method in https://github.com/jenkinsci/favorite-plugin/blob/67de45c325f99da9dbb637fa304d29992ae16715/src/main/java/hudson/plugins/favorite/project/FavoriteProjectAction.java#L63-L67
and finally: https://github.com/jenkinsci/favorite-plugin/blob/67de45c325f99da9dbb637fa304d29992ae16715/src/main/java/hudson/plugins/favorite/column/FavoriteColumn.java#L89-L92