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

[OCP web console] Wrong message "404: Not found" while the user selects an installed operator and navigates from operator hub to installed operator page.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.12.z
    • 4.12
    • Management Console
    • None
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the *_View it here_* link in the *Operator details* pane for installed Operators was incorrectly built when *_All Namespaces_* was selected. As a result, the link attempted to navigate to the *Operator details* page for a cluster service version (CSV) in *All Projects*, which is an invalid route. With this update, the *_View it here_* link to use the namespace where the CSV is installed now builds correctly and the link works as expected. (link:https://issues.redhat.com/browse/OCPBUGS-184[*OCPBUGS-184*]
      Show
      * Previously, the *_View it here_* link in the *Operator details* pane for installed Operators was incorrectly built when *_All Namespaces_* was selected. As a result, the link attempted to navigate to the *Operator details* page for a cluster service version (CSV) in *All Projects*, which is an invalid route. With this update, the *_View it here_* link to use the namespace where the CSV is installed now builds correctly and the link works as expected. (link: https://issues.redhat.com/browse/OCPBUGS-184 [* OCPBUGS-184 *]
    • Done

      Description of problem:

      When user selects a installed operator (for example, openshift elastic search) in operator hub and navigating to installed operator page from operator information page

      with the help of "view it here" option, "404 Not found" information has wrongly shown/appeared although it navigates to the installed operator at the end.

       

      Version-Release number of selected components (if applicable):
      4.12.0-0.nightly-2022-08-15-150248
      How reproducible:

       Always

       

      Steps to Reproduce:

      1. Login to OCP web console.
      2. Install Operator, For example,OpenShift Elasticsearch Operator- production operators if missing.
      3. Go to the Operator hub and  search for OpenShift Elasticsearch Operator. (make sure Project filter sets to 'All projects')
      4. Click on OpenShift Elasticsearch Operator- production operators.
      5. Click on the link "View it here" from the installed operator section.
      6. View the behavior.

      Actual results:

      Wrong message "404: Not found" while the user selects an installed operator and navigates from operator hub to installed operator page.

       

      Browser console log indicate as below

      main-chunk-525818b154a57a9b220a.min.js:1 unhandled error: Uncaught TypeError: Cannot read properties of undefined (reading 'firstElementChild') TypeError: Cannot read properties of undefined (reading 'firstElementChild')
          at c (https://console-openshift-console.apps.jmekkatt-dob.ibmcloud.qe.devcluster.openshift.com/static/vendors~main-chunk-40fab65853dff2fbc413.min.js:118:125992)
          at HTMLDivElement.l (https://console-openshift-console.apps.jmekkatt-dob.ibmcloud.qe.devcluster.openshift.com/static/vendors~main-chunk-40fab65853dff2fbc413.min.js:118:126387) TypeError: Cannot read properties of undefined (reading 'firstElementChild')
          at c (vendors~main-chunk-40fab65853dff2fbc413.min.js:72303:1)
          at HTMLDivElement.l (vendors~main-chunk-40fab65853dff2fbc413.min.js:72303:1)
      window.onerror @ main-chunk-525818b154a57a9b220a.min.js:1
      vendors~main-chunk-40fab65853dff2fbc413.min.js:72303 Uncaught TypeError: Cannot read properties of undefined (reading 'firstElementChild')
          at c (vendors~main-chunk-40fab65853dff2fbc413.min.js:72303:1)
          at HTMLDivElement.l (vendors~main-chunk-40fab65853dff2fbc413.min.js:72303:1)
      c @ vendors~main-chunk-40fab65853dff2fbc413.min.js:72303
      l @ vendors~main-chunk-40fab65853dff2fbc413.min.js:72303
      scroll (async)
      componentWillUnmount @ vendor-patternfly-core-chunk-006bb1499791fa7cfea7.min.js:38397
      hs @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      bs @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      hs @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      bs @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      Oc @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      t.unstable_runWithPriority @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171690
      Hi @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      Ac @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      pc @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      (anonymous) @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      t.unstable_runWithPriority @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171690
      Hi @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      Vi @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      qi @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      De @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      Yt @ vendors~main-chunk-40fab65853dff2fbc413.min.js:171377
      main-chunk-525818b154a57a9b220a.min.js:1          GET https://console-openshift-console.apps.jmekkatt-dob.ibmcloud.qe.devcluster.openshift.com/api/kubernetes/apis/operators.coreos.com/v1alpha1/clusterserviceversions/elasticsearch-operator.5.5.0 404 (Not Found)
        

      Expected results:

      Installed operator details should show without any error when the user selects an installed operator and navigates from operator hub to installed operator page.

       

      Additional info:

      Reproduced in both chrome[103.0.5060.114 (Official Build) (64-bit)] and firefox[91.11.0esr (64-bit)] browsers

      Attached screen share for the same issue InstalledOperatorNavigation404.mp4

              rh-ee-jonjacks Jon Jackson
              jmekkatt@redhat.com Jayakrishnan Mekkattillam
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
              Olivia Payne Olivia Payne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: