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

[release-4.13] Console plugin proxy changes status code to 200

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 4.13.z
    • 4.15.0
    • Management Console
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-27305. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-26933. The following is the description of the original issue:

      Description of problem:

      Console is overriding status code of HTTP requests proxied to dynamic plugin services

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

      4.15.0-ec.2

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create an OpenShift 4.15.0-ec.2 cluster or newer
      2. Install ACM 2.9.1 from OperatorHub and create a MultiClusterHub operand
      3. Expose the plugin service: oc -n multicluster-engine expose service console-mce-console
      4. Set tls.termination to passthrough on route/console-mce-console
      5. Compare responses from curling the proxy and the service directly.
          

      Actual results:

      $ curl -k -D - -H "Cookie: <REDACTED>" -H "If-Modified-Since: Thu, 07 Dec 2023 14:45:30 GMT" https://console-openshift-console.apps.kevin-415.dev02.red-chesterfield.com/api/plugins/mce/plugin-manifest.json
      HTTP/1.1 200 OK
      cache-control: no-cache
      date: Wed, 10 Jan 2024 21:16:10 GMT
      last-modified: Thu, 07 Dec 2023 14:45:30 GMT
      referrer-policy: strict-origin-when-cross-origin
      x-content-type-options: nosniff
      x-dns-prefetch-control: off
      x-frame-options: DENY
      x-xss-protection: 1; mode=block
      content-length: 0 
      
      curl -k -D - -H "If-Modified-Since: Thu, 07 Dec 2023 14:45:30 GMT" https://console-mce-console-multicluster-engine.apps.kevin-415.dev02.red-chesterfield.com/plugin/plugin-manifest.json
      HTTP/2 304 
      cache-control: no-cache
      last-modified: Thu, 07 Dec 2023 14:45:30 GMT
      date: Wed, 10 Jan 2024 21:26:33 GMT

      Expected results:

      Response code of 304 should be returned by the proxy route, not changed to 200.

      Additional info:

      Introduced by https://github.com/openshift/console/pull/13272    

            [OCPBUGS-28788] [release-4.13] Console plugin proxy changes status code to 200

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (OpenShift Container Platform 4.13.37 bug fix update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:1200

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (OpenShift Container Platform 4.13.37 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:1200

            Hi rh-ee-jonjacks,

            Bugs should not be moved to Verified without first providing a Release Note Type("Bug Fix" or "No Doc Update") and for type "Bug Fix" the Release Note Text must also be provided. Please populate the necessary fields before moving the Bug to Verified.

            OpenShift Jira Bot added a comment - Hi rh-ee-jonjacks , Bugs should not be moved to Verified without first providing a Release Note Type("Bug Fix" or "No Doc Update") and for type "Bug Fix" the Release Note Text must also be provided. Please populate the necessary fields before moving the Bug to Verified.

              rh-ee-jonjacks Jon Jackson
              openshift-crt-jira-prow OpenShift Prow Bot
              YaDan Pei YaDan Pei
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: