Bug 1878968 - Console turns blank while editing a secret which does not have key and value
Summary: Console turns blank while editing a secret which does not have key and value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.6.0
Assignee: Jakub Hadvig
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks: 1879224
TreeView+ depends on / blocked
 
Reported: 2020-09-15 04:40 UTC by Vinu K
Modified: 2023-12-15 19:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:40:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6624 0 None closed Bug 1878968: Empty secret should be editable in generic secret form 2020-12-29 15:33:24 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:41:07 UTC

Description Vinu K 2020-09-15 04:40:58 UTC
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-18 02:18:28 UTC
1. Create a secret without a key and value using:

   $ oc create secret generic foo

2. Goto console and edit the secret, Add key and value then Save the changes, secret can be updated
# oc describe secret foo 
Name:         foo
Namespace:    yapei
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
key2:  4 bytes
key3:  4 bytes
key1:  5 bytes


Verified on 4.6.0-0.nightly-2020-09-17-152859

Comment 3 Vinu K 2020-09-18 05:24:37 UTC
Thank you for reproducing the issue.

We are facing this issue on 4.5 and tested on 4.4 as well but did not work. Can you please confirm on 4.5 and its below versions?

Comment 6 errata-xmlrpc 2020-10-27 16:40:46 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.6 GA Images), 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:4196


Note You need to log in before you can comment on or make changes to this bug.