Bug 1880478

Summary: Console turns blank while editing a secret which does not have key and value
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, jhadvig, jokerman, nmukherj, spadgett, yapei
Target Milestone: ---Keywords: UserExperience
Target Release: 4.4.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-13 08:17:44 UTC Type: ---
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: 1879224    
Bug Blocks:    

Description OpenShift BugZilla Robot 2020-09-18 16:32:42 UTC
+++ This bug was initially created as a clone of Bug #1879224 +++

+++ This bug was initially created as a clone of Bug #1878968 +++

Description of problem:

The console turns blank while editing a secret which does not have a key and value.

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

OpenShift v4.x

How reproducible:

100%

Steps to Reproduce:

1. Create a secret without a key and value using:

   $ oc create secret generic foo

2. Goto console and edit the secret.

3. The screen will turn blank

Actual results:

It shows nothing in the console - blank screen.

Expected results:

It should give an option to edit the secret.

Additional info:

It may be an issue with oc command. It should not allow creating a secret which does not have a key like web console secret creation does.

Comment 2 Yadan Pei 2020-09-27 06:51:00 UTC
1. Create a secret without a key and value using:

   $ oc create secret generic foo

2. Goto console and edit the secret, save the changes. secret can be edited
3. check secret in CLI
# oc describe secret foo
Name:         foo
Namespace:    yapei44
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
key1:  6 bytes
key2:  6 bytes

We can confirm that secret is updated successfully

Verified on 4.4.0-0.nightly-2020-09-26-200621

Comment 5 errata-xmlrpc 2020-10-13 08:17:44 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 (OpenShift Container Platform 4.4.27 bug fix 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/RHBA-2020:4063