Bug 1973160

Summary: Monitoring UI disappear when we query a string
Product: OpenShift Container Platform Reporter: Damien Grisonnet <dgrisonn>
Component: MonitoringAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: low    
Version: 4.9CC: anpicker, aos-bugs, erooth, janantha
Target Milestone: ---   
Target Release: 4.9.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: 2021-10-18 17:35:03 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:
Attachments:
Description Flags
query string input none

Description Damien Grisonnet 2021-06-17 10:58:26 UTC
Created attachment 1791783 [details]
query string input

Description of problem:

When we query a string in the OpenShift monitoring UI, the page becomes blank and both the graph and the query input disappear.

What I mean by a string is any sequence beginning by ",',` and ending by the same character.

For instance the bug is reproducible with the following inputs:
- ""
- ''
- ``
- " "
- "my_metric_name"

But not with the following ones:
- my_metric_name ""
- "" my_metric_name

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-06-16-012120

How reproducible:
Always

Steps to Reproduce:
1. query "" in the Monitoring UI
2.
3.

Actual results:
The page became blank

Expected results:
I would have expected the same output has in Prometheus, namely an error in the graph and `string` output in the query result.
Or at least, I wouldn't have expected the page to become blank.

Additional info:

I was able to reproduce the issue with Chromium and Firefox

I attached a gif demonstrating the issue.

Comment 1 Jayapriya Pai 2021-06-17 11:44:35 UTC
I also checked this in 4.7 it exists there as well. So it should be there in 4.8 as well

Comment 2 Junqi Zhao 2021-06-18 01:55:37 UTC
yes, same issue with 4.8.0-0.nightly-2021-06-16-190035, typed in query browser with following scenarios
1. "" 
2. "hello"
3. ``
4. `hi`

the page becomes blank

Comment 4 Junqi Zhao 2021-06-28 09:40:28 UTC
tested with 4.9.0-0.nightly-2021-06-27-185007, followed steps in Comment 2, the page won't become blank

Comment 12 errata-xmlrpc 2021-10-18 17:35:03 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.9.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-2021:3759