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

Missing permission error handling in developer mode

XMLWordPrintable

    • Low
    • None
    • All
    • If docs needed, set a value

      Description of problem:

      When encountering a missing permission problem (e.g. when accessing https://console-openshift-console.apps.cnv.****.redhat.com/add/ns/openshift-virtualization-os-images ) without the proper permissions, the console crashes and a white screen appears. The browser developer console logs several errors similar to the following: (See the attached error log for full details.)

      consoleFetch failed for url /api/kubernetes/apis/ceph.rook.io/v1/namespaces/openshift-storage/cephclusters? a: cephclusters.ceph.rook.io is forbidden: User "*****" cannot list resource "cephclusters" in API group "ceph.rook.io" in the namespace "openshift-storage"

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

      4.10

      How reproducible:

      Always

      Steps to Reproduce:
      1. Open the console in developer mode without the appropriate permissions
      2. Click on "Add"
      3. Click on the project without the right permissions.

      Actual results:

      White screen.

      Expected results:

      An error message explaining that I don't have permissions.

              yzamir@redhat.com Yaacov Zamir
              jpasztor@redhat.com Janos Bonic
              Guohua Ouyang Guohua Ouyang
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: