Bug 2040655

Summary: User settings update fails when selecting application in topology sidebar
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: low    
Version: 4.10CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:39:37 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 Christoph Jerolimov 2022-01-14 11:27:42 UTC
Description of problem:
When selecting an application in the topology there is a network call failing. In dev mode, I see also a full-screen error message.

Got this error message in the browser console:

user-settings.ts:46 Could not update (patch) user settings ConfigMap HttpError: Error "Invalid value: "console.sideBarAlerts.health-check-alert.group:nodeinfo-app": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name',  or 'KEY_NAME',  or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+')" for field "data[console.sideBarAlerts.health-check-alert.group:nodeinfo-app]".
    at console-fetch-utils.ts:99:1

The PATCH call to the ConfigMap shows this payload:

{
  "data": {
    "console.sideBarAlerts.health-check-alert.group:nodeinfo-app": "true"
  }
}


Version-Release number of selected component (if applicable):
4.10, maybe older versions as well?

How reproducible:
Always

Steps to Reproduce:
1. Switch to dev perspective
2. Import an application
3. Switch to topology and open the application in the sidebar

Actual results:
Network error (PATCH call to ConfigMap) fails, user setting could not be saved

Expected results:
Network call should pass and user setting should be saved

Additional info:

Comment 3 Christoph Jerolimov 2022-01-20 13:45:53 UTC
Verified on 4.10.0-0.nightly-2022-01-20-082726

The network call to patch the user settings passes now when selecting an application in the topology.

Comment 6 errata-xmlrpc 2022-03-10 16:39:37 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.10.3 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:0056