Bug 1069951

Summary: Empty string in adding a language causes a broken language to be added
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Component-LogicAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3CC: dchen, zanata-bugs
Target Milestone: ---   
Target Release: 3.6   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 3.6.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-2254) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 07:10:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Damian Jansen 2014-02-26 00:38:40 UTC
Description of problem:
Leaving an empty input field and pressing add creates a language called "Root" which is basically unusable.

Version-Release number of selected component (if applicable):

How reproducible:
Easy always(?)

Steps to Reproduce:
1. Log in as admin, go to Menu->Administration->Manage Languages
2. Click Add New Language
3. Press Save

Actual results:
A language called Root is added, that lacks a locale id and has Root, root as the normal and native names.

Expected results:
"Field cannot be empty" error

Additional info:

Comment 1 Alex Eng 2014-11-03 05:34:34 UTC
Pull request:

Comment 2 Ding-Yi Chen 2014-11-03 06:25:58 UTC
VERIFIED with Zanata 3.6.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-2254)