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

Bridge getConsolePlugins func throws exception if console plugin request fails

XMLWordPrintable

    • Low
    • Yes
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      We are not error checking the response when we request console plugins in getConsolePlugins. If this request fails, we still try to access the "Items" property of the response, which is nil, and causes an exception to be trhown. We need to make sure the request succeeded before referencing any properties of the response.

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      1. Run bridge locally without setting the requisite env vars
      

      Actual results:

      A runtime exception is thrown from the getConsolePlugins function and bridge terminates

      Expected results:

      An error should be logged and bridge should continue to run

      Additional info:

       

              rh-ee-jonjacks Jon Jackson
              rh-ee-jonjacks Jon Jackson
              Xiyun Zhao Xiyun Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: