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

Bug 988008

Summary: wrong language stored in cookies when opening webadmin from welcome page
Product: [Retired] oVirt Reporter: Pavel Stehlik <pstehlik>
Component: ovirt-engine-coreAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3CC: acathrow, awels, ecohen, iheim
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ux
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 07:32:50 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 Pavel Stehlik 2013-07-24 14:17:25 UTC
Description of problem:
 Once language on Welcome page (WP)is chosen, it should be set also for webadmin. Currently those languages are stored in wrong cookie. WP uses path uses ' /ovirt-engine/', and webadmin uses '/webadmin'.


Version-Release number of selected component (if applicable):
ovirt-engine-3.3.0-0.3.beta1.fc19.noarch

How reproducible:
100%

Steps to Reproduce:
1. install engine, show WP  https://fqdn/
2. choose 'fr_FR' lang.
3. open Webadmin.
4. close browser window/tab, open https://fqdn/ again
5. this time change lang to 'en_US' 
6. open webadmin again - 'fr_FR' still set.


Actual results:


Expected results:
Language in webadmin should be inherited from WP.

Additional info:

Comment 1 Einav Cohen 2013-07-31 14:50:26 UTC
Alex - is this something that http://gerrit.ovirt.org/#/c/16359/ fixed? or is this problem irrelevant?

Comment 2 Alexander Wels 2013-07-31 18:04:33 UTC
No that did not get fixed by http://gerrit.ovirt.org/#/c/16359/ As it is not something I am sure we can fix. The welcome page and webadmin/userportal all different web applications and I am not sure if they have access to each others cookies.

If you use the links in the welcome page, the locale is passed as a parameters and that will cause the cookies to match, however if you change the locale in webadmin, it will not affect the locale in the welcome page or the locale in user portal.

Comment 3 Alexander Wels 2013-08-01 15:49:04 UTC
Let me rephrase the answer I gave.

If it was the following scenario, then http://gerrit.ovirt.org/#/c/16359/ did fix it.

1. Go to the welcome page, and select a different language for instance French.
2. Use the links in the welcome page to go to the webadmin login page.
3. Go back to the welcome page, and select English/US as the language.
4. Use the links in the welcome page to go to the webadmin login page. This now still shows French.

The patch fixed that issue. However if the scenario is:
1. Go to the welcome page, and select a different language for instance French.
2. Use the links in the welcome page to go to the webadmin login page.
3. Go back to the welcome page, and select English/US as the language.
4. Use a bookmark to go to the webadmin login page. This now still shows French.

This particular issue was not fixed by the above patch. A different patch has been submitted to fix this issue.

Comment 4 Itamar Heim 2013-08-21 16:40:29 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 5 Itamar Heim 2013-09-23 07:32:50 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)