mirror of https://github.com/apache/nifi.git
parent
ec50a2de8c
commit
5ef53b6fe3
|
@ -467,6 +467,11 @@ public class StandardUserDAO implements UserDAO {
|
|||
throw new IllegalArgumentException("User identity must be specified.");
|
||||
}
|
||||
|
||||
// ensure the user identity is not too lengthy
|
||||
if (user.getIdentity().length() > 4096) {
|
||||
throw new IllegalArgumentException("User identity must be less than 4096 characters.");
|
||||
}
|
||||
|
||||
PreparedStatement statement = null;
|
||||
ResultSet rs = null;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue