Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4731

[UI] Log in screen breaks when it receives an invalid Accept-Language header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • openshift-4.20
    • Console Operator
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

       Log in screen will break when sent a invalid Accept-Language header 
      

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

      4.19.8
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      Run on MacOS
      
       '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' 'https://console-openshift-console.apps.qemtv-09.rhos-psi.cnv-qe.rhood.us/' --user-data-dir=$(mktemp -d) --incognito --accept-lang='en-US@posix' --ignore-certificate-errors 
      
      or Run on linux
      
      google-chrome --user-data-dir=$(mktemp -d) --incognito --accept-lang='en-US@posix' --ignore-certificate-errors https://console-openshift-console.apps.qemtv-09.rhos-psi.cnv-qe.rhood.us/
      
      "en-US@posix" is a invalid language 
      A blank screen will appear. "JavaScript must be enabled." error can be found on the browser Dev tools
      
      


      Actual results:

      Page is not functional, no clear error is shown
      

      Expected results:

      Fallback to default language OR display appropriate error message.
      

      Additional info:

      
      

              Unassigned Unassigned
              rh-ee-pabreu Pedro Abreu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: