NIFI-655:

- Ensuring the user identity is not too long.
This commit is contained in:
Matt Gilman 2015-11-23 12:14:01 -05:00
parent ec50a2de8c
commit 5ef53b6fe3
1 changed files with 5 additions and 0 deletions

View File

@ -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 {