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
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
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