Bug 1973160 - Monitoring UI disappear when we query a string
Summary: Monitoring UI disappear when we query a string
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.9
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.9.0
Assignee: Andrew Pickering
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 10:58 UTC by Damien Grisonnet
Modified: 2021-10-18 17:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:35:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
query string input (1.03 MB, image/gif)
2021-06-17 10:58 UTC, Damien Grisonnet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9337 0 None open Bug 1973160: Query Browser: Gracefully handle `string` type query results 2021-06-24 09:54:32 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:35:44 UTC

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


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