Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
Low
Description
In SimpleAuthorizer around line 47 we have,
EnumSet<Permission> authorized = EnumSet.copyOf(Permission.NONE);
This results in an IllegalArgumentException since Permission.NONE is an empty set. I think it should be changed to,
EnumSet<Permission> authorized = EnumSet.noneOf(Permission.class);