Bug 1030851 - exotic locales prevent katello s access
exotic locales prevent katello s access
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
Depends On:
  Show dependency treegraph
Reported: 2013-11-15 04:49 EST by Karim Boumedhel
Modified: 2017-03-22 16:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-03-22 16:37:03 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Karim Boumedhel 2013-11-15 04:49:48 EST
Description of problem:
on a fresh install, /katello throws a error of 
The page isn't redirecting properly

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

How reproducible:
download quick locale switcher add-on for firefox
access katello s url of your satellite6

Steps to Reproduce:

Actual results:
you should get main katello page

Expected results:
The page isn't redirecting properly

Additional info:
removing this extension and the additional locales it sets with  Prefs->Content->Languages->Choose serves as a workaround
locales with numbers seem not to be accepted by the language parser
Comment 1 Karim Boumedhel 2013-11-15 04:50:13 EST
this is the error trace
[ERROR 2013-11-15 10:23:39 app 40fe755b95a4d3b5b2ba1144861b3377 #1808] incorrect locale format (RuntimeError)
 | /usr/share/katello/app/lib/kt_locale.rb:66:in `block in parse_accept_locale'
 | /usr/share/katello/app/lib/kt_locale.rb:65:in `sort'
 | /usr/share/katello/app/lib/kt_locale.rb:65:in `parse_accept_locale'
 | /usr/share/katello/app/lib/kt_locale.rb:20:in `set_locale_from_header'
Comment 2 Dominic Cleal 2013-11-15 04:55:16 EST
The Accept-Language header being sent by Karim's browser was:


This contains locales ("en-US-ORACLE9I", "UTF-8") containing numbers, which app/lib/kt_locale.rb doesn't accept as it validates against /[a-z\-]+/:

Comment 4 Bryan Kearney 2017-03-22 16:37:03 EDT
I do not believe this will be addressed in the next few releases, so I am closing this out. If you feel this was incorrect, please feel free to re-open with additional information.

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