diff --git a/core/src/main/java/hudson/security/AuthorizationStrategy.java b/core/src/main/java/hudson/security/AuthorizationStrategy.java index a3f8b747ef..c798ae6000 100644 --- a/core/src/main/java/hudson/security/AuthorizationStrategy.java +++ b/core/src/main/java/hudson/security/AuthorizationStrategy.java @@ -111,6 +111,10 @@ public abstract class AuthorizationStrategy implements Describable * This method is used by {@link ContainerAuthentication} to work around the servlet API issue * that prevents us from enumerating roles that the user has. + *

+ * If such enumeration is impossible, do the best to list as many as possible, then + * return it. In the worst case, just return an empty list. Doing so would prevent + * users from using role names as group names (see HUDSON-2716 for such one such report.) * * @return * never null.