Steps to Reproduce:
Login to zanata.
Click on Glossary menu
Click on create new glossary term icon.
Enter long string in term and part of speech
Observe the behaviour
There is no limitation or validation for fields in new term modal-box
Character limitation or validation should be there for creating new term.
Term - 500 characters (currently longtext)
Part of Speech - 255 characters (current)
Description - 500 characters (currently 255(!?))
Add field limits to the above to prevent attempts and improve usability.
Add limits in DTOs.
If (select count( * ) from HGlossaryTerm where LENGTH(content) > 500)
Export the database table HGlossaryTerm
Truncate the content of any terms that are over these limits
Increase field limit of HGlossaryEntry.description to varchar(500)