Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-6268

Manually created invalid Kamelets should be skipped in the eventsources list

XMLWordPrintable

    • False
    • False
    • 0
    • undefined
    • Not Supported
    • ODC Sprint 206
    • Medium

      Description of problem:   

      Create an invalid Kamelet of type "source" using create Kamelet button from search page. Visiting the Add flow event sources page breaks the UI with an NPE.

      Prerequisites (if any, like setup, operators/versions):  

      Openshift Serverless operator + Red Hat camel K Integration

      Steps to Reproduce

      1. Goto search page, search for Kamelet and click on create Kamlet
      2. Add the below label to the metadata field in the pre-populated yaml.  
      labels: camel.apache.org/kamelet.type: "source"
      1. Visit the Add -> Event sources page.

      Actual results:

      UI breaks with following error: 

      
       Uncaught TypeError: Cannot read property 'title' of undefined
       at useKameletsProvider.ts:22
      
       

      Expected results:  

      No errors on UI. (Invalid kamelets must be skipped in the provider list)

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:  

      4.9.0-0.nightly-2021-08-22-005117

       

              jakumar jaivardhan Kumar
              karthik.jk Karthik Jeeyar
              Sahil Budhwar Sahil Budhwar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: