Bug 1180950 - [webadmin] Clusters main tab -> General sub-tab doesn't show actual info in other language except English
Summary: [webadmin] Clusters main tab -> General sub-tab doesn't show actual info in o...
Keywords:
Status: CLOSED DUPLICATE of bug 1157380
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: 3.5
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Alexander Wels
QA Contact: Pavel Stehlik
URL:
Whiteboard: ux
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-12 02:39 UTC by Vincent
Modified: 2015-01-13 19:54 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 19:54:31 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.