Bug 2270446

Summary: management-console unresponsive when copied name with trailing space into resource name input
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Daniel Osypenko <dosypenk>
Component: management-consoleAssignee: Sanjal Katiyar <skatiyar>
Status: CLOSED ERRATA QA Contact: Daniel Osypenko <dosypenk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.15CC: nthomas, odf-bz-bot, skatiyar
Target Milestone: ---   
Target Release: ODF 4.16.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.16.0-77 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-17 13:16:51 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 Daniel Osypenko 2024-03-20 13:07:05 UTC
Description of problem (please be detailed as possible and provide log
snippests):

management-console becomes unresponsive when copied name with trailing space or name with several spaces into resource name input, where name validation happens. For example input of BackingStore Name, BlockingPool name, OBC name, etc. 

On chrome Version 122.0.6261.129 (Official Build) (arm64) management-console will never reload and popup with "Page becomes unresponsive" appears. On Firefox 124.0 (64-bit) after some time elements get responsive but with sensible lag; Pop-Up with validation icons don't show that name is not valid, but creating resource with such name user will see Regex not passed msg. See video by the link bellow.

No new requests happen on Chrome / Inspect / Network, meaning that issue is in frontend script that blocks the browser. 
 
---------
 
Version of all relevant components (if applicable):
ODF 4.15.0-rhodf, OCP 4.15.0-0.nightly-2024-03-12-010512
 
---------

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
for some time, until new browser tab is open and navigated to necessary page
 
---------
 
Is there any workaround available to the best of your knowledge?
open new browser tab and navigate to necessary page, recreate resource with name without spaces
 
---------

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1
 
---------
 
Can this issue reproducible?
yes, every time
 
---------
 
Can this issue reproduce from the UI?
yes
 
---------
 
If this is a regression, please provide more details to justify this:
 
---------

Steps to Reproduce:
1. login to management console
2. navigate to Data Foundation / Storage Systems / BlockPools
3. copy the name "rbd-pool-test-ef6ec2a10fbb4c63956938396e " (41 symbol including trailing space) into Poolname field
 
---------
 
Actual results:
page stop responding. "Page unresponsive Chrome popup appears, proposing to close page or wait"
 
---------
 
Expected results:
Validation popup shows that rules violated:

* Starts and ends with a lowercase letter or number: error status
* Only lowercase letters, numbers, non-consecutive periods, or hyphens
User doesn't experience any delays
 
---------
 
Additional info:
screen recording: https://drive.google.com/file/d/13nqHcbI8_V1U5xF6a_biAsrVPDmddPY_/view?usp=sharing

Comment 5 Daniel Osypenko 2024-04-16 20:27:48 UTC
Fixed: https://drive.google.com/file/d/12ex9DK9zcWydcuMBl5Jkn3w2pMKw9Jl-/view?usp=sharing

ocs-operator.v4.16.0-77.stable

Comment 7 errata-xmlrpc 2024-07-17 13:16:51 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 (Important: Red Hat OpenShift Data Foundation 4.16.0 security, enhancement & 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/RHSA-2024:4591