Commit 827da31d92bf52a3a25e06ecaf83a2497395b0b6

Authored by Swoq
1 parent 57cec85b

Validation fixes

... ... @@ -36,7 +36,7 @@ public class User extends SearchTextBasedWithAdditionalInfo<UserId> implements H
36 36 private String email;
37 37 private Authority authority;
38 38 @NoXss
39   - @Length(fieldName = "firs name")
  39 + @Length(fieldName = "first name")
40 40 private String firstName;
41 41 @NoXss
42 42 @Length(fieldName = "last name")
... ...
... ... @@ -28,6 +28,7 @@ public class WidgetsBundle extends SearchTextBased<WidgetsBundleId> implements H
28 28
29 29 private TenantId tenantId;
30 30 @NoXss
  31 + @Length(fieldName = "alias")
31 32 private String alias;
32 33 @NoXss
33 34 @Length(fieldName = "title")
... ...
... ... @@ -31,7 +31,7 @@ public class StringLengthValidator implements ConstraintValidator<Length, String
31 31 if (StringUtils.isEmpty(value)) {
32 32 return true;
33 33 }
34   - return value.trim().length() <= max;
  34 + return value.length() <= max;
35 35 }
36 36
37 37 @Override
... ...