Red Hat Bugzilla – Bug 1037932
Unhandled exception: Add language field allows more character than the database does (255)
Last modified: 2014-03-20 01:47:20 EDT
Description of problem:
The column type for localeid is VARCHAR(255) NOT NULL. The field that allows the admin to specify the locale is not limited, and entering more than the 255 characters results in an exception
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Sign in as admin
2. Click Languages, then Add Language
3. In the available Language field, enter a large string
4. Press Save
org.h2.jdbc.JdbcSQLException: Value too long for column "LOCALEID VARCHAR(255) NOT NULL": "STRINGDECODE('\ufeffThe Project Gutenberg EBook of Moby Dick; or The Whale, by Herman Melville This eBook is for the use of any... (1235149)";
A limit on the field
Verified at 9c46eb0cc798a1883e066057221a503690c6c6a2
I suppose the Fixed In Version should be 3.3.0-SNAPSHOT something?
And Target Release 3.3?
I'm making up the Fixed In Version based on the project version found in the pom.xml for that commit, plus the timestamp of the commit.
Closing VERIFIED bugs for Zanata server 3.3.2.