mirror of
https://github.com/nicolabs/script-realm-plugin.git
synced 2026-04-11 00:24:46 +02:00
fix issue when validating group names, throwing correct exception causes fall through in hudson.security.GlobalMatrixAuthorizationStrategy.DescriptorImpl.doCheckName_(String, AccessControlled, Permission)
This commit is contained in:
parent
6363f7ac17
commit
817e9bfc7a
|
|
@ -144,7 +144,7 @@ public class ScriptSecurityRealm extends AbstractPasswordBasedSecurityRealm {
|
|||
}
|
||||
|
||||
} else {
|
||||
throw new BadCredentialsException(out.toString());
|
||||
throw new UsernameNotFoundException(out.toString());
|
||||
}
|
||||
}
|
||||
return authorities.toArray(new GrantedAuthority[0]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue