[zanata-bugs] [Bug 1037932] New: Unhandled exception: Add language field allows more character than the database does (255)

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 4 05:40:09 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1037932

            Bug ID: 1037932
           Summary: Unhandled exception: Add language field allows more
                    character than the database does (255)
           Product: Zanata
           Version: development
         Component: Component-UI
          Severity: high
          Assignee: zanata-dev-internal at redhat.com
          Reporter: djansen at redhat.com
        QA Contact: zanata-qa at redhat.com
                CC: zanata-bugs at redhat.com



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):
dev

How reproducible:
Easy always

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

Actual results:
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)";

Expected results:
A limit on the field

Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=PF5iVlBQwB&a=cc_unsubscribe




More information about the zanata-bugs mailing list