Alias name cannot have more than 31 chars, add maxlength here just as an extra check. Ticket #3827