Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2056496

Summary: If image does not exists for builder image then upload jar form crashes
Product: OpenShift Container Platform Reporter: Jaivardhan Kumar <jakumar>
Component: Dev ConsoleAssignee: Jaivardhan Kumar <jakumar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: low    
Version: 4.9CC: aos-bugs, cjerolim, nmukherj, viraj
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:50:27 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:

Description Jaivardhan Kumar 2022-02-21 11:19:34 UTC
Description of problem: If the image does not exists for the builder image then upload jar form crashes, this may happen if the user does not have console-operator installed.

Currently, UI fetches builder images just with the name java, we can even make sure these are valid images.


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


How reproducible: Always


Steps to Reproduce:
1. remove the existing builder images for java / get a fresh cluster that does not have a console operator in it
2. Go to add -> upload jar


Actual results: UI Crashes


Expected results: UI should not crash


Additional info: Can even check with UXD/PM on what should be shown in UI in this scenario as if builder images are not present either way then user can't proceed with creation from the upload jar form

Comment 3 Christoph Jerolimov 2022-03-17 08:40:38 UTC
Verified it on 4.11.0-0.nightly-2022-03-16-103946 by blocking this URLs:

/api/kubernetes/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/java
/api/kubernetes/apis/image.openshift.io/v1/namespaces/openshift/imagestreamtags/java%3Aopenjdk-17-ubi8

Comment 5 errata-xmlrpc 2022-08-10 10:50:27 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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-2022:5069