Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-28836

Fix usersettings identifier creation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 4.16.0
    • 4.16.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Usernames can contain all kinds of characters that are not allowed in resource names. Hash the name instead and use hex representation of the result to get a usable identifier.    

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

          4.16

      How reproducible:

          Always

      Steps to Reproduce:

          1. log in to the web console configured with a login to a 3rd party OIDC provider
          2. go to the User Preferences page / check the logs in the javascript console
          

      Actual results:

      The User Preferences page shows empty values instead of defaults.
      The javascript console reports things like
      ```
      consoleFetch failed for url /api/kubernetes/api/v1/namespaces/openshift-console-user-settings/configmaps/user-settings-kubeadmin r: configmaps "user-settings-kubeadmin" not found
      ```

      Expected results:

         I am able to persist my user preferences. 

      Additional info:

          

            slaznick@redhat.com Stanislav Láznička
            jhadvig@redhat.com Jakub Hadvig
            Xiyun Zhao Xiyun Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: