Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2848

[Cluster details] Rerunning network validator by an unauthorized user causes broken overview page with type errors.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • A-Team

      Description of the Problem

      A user doesn't have an edit access (ready only access i.e. cluster viewer access) to a cluster and tried to rerun the network validation from the overview page causes the type error and broken the overview page.

      TypeError: e is undefined
          s ErrorDetailsDisplay.tsx:22
          bi chrome-root.791599912ba3ba48.js:2
          Sl chrome-root.791599912ba3ba48.js:2
          vs chrome-root.791599912ba3ba48.js:2
          ys chrome-root.791599912ba3ba48.js:2
          bs chrome-root.791599912ba3ba48.js:2
          os chrome-root.791599912ba3ba48.js:2
          ls chrome-root.791599912ba3ba48.js:2
          za chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          as chrome-root.791599912ba3ba48.js:2
          _ chrome-root.791599912ba3ba48.js:2
          N chrome-root.791599912ba3ba48.js:2
      console.js:36:19
          l console.js:36
          fc chrome-root.791599912ba3ba48.js:2
          callback chrome-root.791599912ba3ba48.js:2
          Go chrome-root.791599912ba3ba48.js:2
          wl chrome-root.791599912ba3ba48.js:2
          vl chrome-root.791599912ba3ba48.js:2
          vl chrome-root.791599912ba3ba48.js:2
          gl chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          ls chrome-root.791599912ba3ba48.js:2
          za chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          Es chrome-root.791599912ba3ba48.js:2
          as chrome-root.791599912ba3ba48.js:2
          _ chrome-root.791599912ba3ba48.js:2
          N chrome-root.791599912ba3ba48.js:2
       

      See the recordings Screen Recording 2025-01-07 at 1.03.57 PM.mov

      Note: This is not happening with production hence suspecting due to change related to multiregion definition.

      How reproducible:

      Always

      Steps to Reproduce:

      1. Open OCM UI staging and login with a org member role.
      2. Open a read only cluster that reported the network validation errors.
        (To enable read only access for a cluster, Login as cluster owner in staging and on selected cluster, Grant OCM role access as "Cluster viewer" for the selected user. In this case it is org member).
      3. Click the link "Rerun network validation" from User action required banner in Overview page.
      4. See the behavior.

      Actual results:

      "Rerun network validation" action broken overview with type error and suspecting issue with handling permissions in newly updated multiregion definition code.

      Expected results:

      "Rerun network validation" action should bring inline notification from overview that indicates the permission error( as seen in production). There shouldn't be any type error in the overview page.

              Unassigned Unassigned
              jmekkatt@redhat.com Jayakrishnan Mekkattillam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: