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

Bug 640598

Summary: search server falls back to en-US even if the Accept-Language is known
Product: Red Hat Satellite 5 Reporter: Tomas Lestach <tlestach>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 540CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 13:27:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714    

Description Tomas Lestach 2010-10-06 12:40:59 UTC
Description of problem:
I identified a problem, when verifying BZ#518664.
If user's Locale Preferences is set to "Use Browser Settings" and the browser
is set to send concrete known languages, the search server fall backs to en-US instead of using them.

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

How reproducible:
always

Steps to Reproduce:
1. Set Locale Preferences to "Use Browser Settings" on the server
1. Have GET where GET is defined as
$ rpm -qf /usr/bin/GET
perl-libwww-perl-5.825-2.fc11.noarch
or similar package on your system
2. Run
$ for i in it it-IT de de-DE de-de
  do echo "Accept-Language: [$i]"
  GET -H "Accept-Language: $i" 'https://ibm-x3950m2-02.ovirt.rhts.eng.bos.redhat.com/rhn/help/Search.do?search_string=kickstart&view_mode=search_content_title' | perl -lne 'if (m!/client-config/(.+?)/ch-rhnreg-ks\.jsp!) { print $1 ; exit }'
  done

Actual results:
Accept-Language: [it]
it-IT
Accept-Language: [it-IT]
en-US
Accept-Language: [de]
de-DE
Accept-Language: [de-DE]
en-US
Accept-Language: [de-de]
en-US

Expected results:
Accept-Language: [it]
it-IT
Accept-Language: [it-IT]
it-IT
Accept-Language: [de]
de-DE
Accept-Language: [de-DE]
de-DE
Accept-Language: [de-de]
de-DE