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

Go's 1.22 net/http.ServeMux causes oauth-server to panic with idp names that contain whitespacs [4.17]

XMLWordPrintable

    • Important
    • Yes
    • Auth - Sprint 250
    • 1
    • False
    • Hide

      None

      Show
      None
    • The newest Go versions (1.22 and above) introduced a regression into the behavior of the Server's path routing. Customers who would have a password-based IDP (like htpasswd) that has whitespaces in the name, would have an oauth-server that panics.
    • Release Note Not Required
    • In Progress

      Description of problem:

          When there is more than one password-based IDP (like htpasswd) and its name contains whitespaces, it causes the oauth-server to panic, if Golang is v1.22 or higher.

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

          

      How reproducible:

          always

      Steps to Reproduce:

          1. Create a cluster with OCP 4.17
          2. Create at least two password-based IDP (like htpasswd) with whitespaces in the name.
          3. oauth-server panics.
          

      Actual results:

          oauth-server panics (if Go is at version 1.22 or higher).

      Expected results:

          NO REGRESSION, it worked with Go 1.21 and lower.

      Additional info:

          

            rh-ee-irinis Ilias Rinis
            kostrows@redhat.com Krzysztof Ostrowski
            Xingxing Xia Xingxing Xia
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: