Bug 1918639

Summary: Event listener with triggerRef crashes the console
Product: OpenShift Container Platform Reporter: Karthik Jeeyar <kjeeyar>
Component: Dev ConsoleAssignee: Karthik Jeeyar <kjeeyar>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, ariroy, nmukherj
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1923939 (view as bug list) Environment:
Last Closed: 2021-02-24 15:55:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1923939    

Description Karthik Jeeyar 2021-01-21 09:41:08 UTC
Description of problem:

Event listeners has an optional `triggerRef` field which is not compatible in UI code causes the UI to crash


Version-Release number of selected component (if applicable):
ocp-4.6 with Openshift Pipelines operator 1.2.2 (ocp-4.6 channel)



How reproducible:
Always

Steps to Reproduce:
1.Create an eventlistener with this yaml:

###
apiVersion: triggers.tekton.dev/v1alpha1
kind: EventListener
metadata:
  name: vote-app
spec:
  serviceAccountName: pipeline
  triggers:
    - triggerRef: vote-app
###

Actual results:
UI crashes with a `name of undefined` error in the browser console



Expected results:
UI should handle the new types and should not break

Comment 2 Aritra Roy 2021-02-03 09:12:29 UTC
verified on

build: 4.7.0-0.nightly-2021-02-02-223803

browser: 84.0.1 (64-bit)

Comment 5 errata-xmlrpc 2021-02-24 15:55:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:5633