Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1180950

Summary: [webadmin] Clusters main tab -> General sub-tab doesn't show actual info in other language except English
Product: [Retired] oVirt Reporter: Vincent <caowei_dl>
Component: ovirt-engine-webadminAssignee: Alexander Wels <awels>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: caowei_dl, ecohen, gklein, iheim, lsurette, mgoldboi, oourfali, rbalakri, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: ux
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-13 19:54:31 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:
Embargoed:

Description Vincent 2015-01-12 02:39:18 UTC
Description of problem:
Clusters main tab -> General sub-tab doesn't show actual info in other language except English, and Edit/Remove button always be inactive.

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


How reproducible:
Just change locale to Chinese

Steps to Reproduce:
1.Change locale to Chinese
2.Login to webadmin
3.Click cluster main tab

Actual results:
1.Sub tab "general" doesn't show correct info
2.Edit/Remove button will be inactive when remove a cluster
3.When only select one cluster to remove,but there more than one items be selected in pop-window

Expected results:
1.Sub tab "general" show correct info
2.Edit/Remove button be in active when select one cluster
3.Only one item be selected when just click each cluster row.

Additional info:

Comment 1 Vincent 2015-01-12 02:52:33 UTC
Cause:
in code: org.ovirt.engine.ui.webadmin.section.main.view.tab.cluster.SubTabClusterGeneralView
line: 100 return GlusterServiceStatus.valueOf(text.toString().toUpperCase());

When in other language except English, "text.toString().toUpperCase()" returns not English string. So enum's valueOf method throw an exception.

Here can be changed to 

-- return GlusterServiceStatus.valueOf(text.toString().toUpperCase());
++ return getDetailModel().getGlusterSwiftStatus();

Comment 2 Einav Cohen 2015-01-13 19:54:31 UTC
should be available in ovirt 3.5.1.

*** This bug has been marked as a duplicate of bug 1157380 ***