RED-7185 - RM-46 - Error message when adjusting the Justification

- permit only comments with length <= 4000 characters
This commit is contained in:
Corina Olariu 2023-10-02 10:01:34 +03:00
parent fe84f2ef04
commit 9cf2bbf7ca

View File

@ -928,7 +928,7 @@ public class ManualRedactionService {
private void checkComment(String text) {
if (!StringUtils.isEmpty(text) && text.length() >= COMMENT_MAX_LENGTH) {
if (!StringUtils.isEmpty(text) && text.length() > COMMENT_MAX_LENGTH) {
throw new BadRequestException(String.format("The comment is too long (%s), max length %s", text.length(), COMMENT_MAX_LENGTH));
}
}