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