Bug 2193109 - Name req validation fail to check start symbol
Summary: Name req validation fail to check start symbol
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: management-console
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.14.0
Assignee: Ivo Almeida
QA Contact: Daniel Osypenko
URL:
Whiteboard:
Depends On:
Blocks: 2244409
TreeView+ depends on / blocked
 
Reported: 2023-05-04 11:08 UTC by Daniel Osypenko
Modified: 2024-03-08 04:25 UTC (History)
5 users (show)

Fixed In Version: 4.14.0-110
Doc Type: Bug Fix
Doc Text:
Previously, due to invalid regex validation for input name of object bucket claim (OBC), backing store, blocking pool, namespace store, and bucket class, the rule "starts and ends with a lowercase letter or number" was violated when symbols or capital letter was entered in the beginning of the name. With this release, the issue is fixed and if the resource name does not follow the rule, "starts and ends with a lowercase letter or number", regex returns an error.
Clone Of:
Environment:
Last Closed: 2023-11-08 18:50:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-console pull 840 0 None Merged Bug 2193109: fixed startAndEndsWithAlphanumerics regex 2023-05-31 13:10:34 UTC

Description Daniel Osypenko 2023-05-04 11:08:06 UTC
Created attachment 1962187 [details]
test_failed_screenshot

Description of problem (please be detailed as possible and provide log
snippests):

Name req validation fail to check start-end symbol. 
When entering punctuation symbols like !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ or capital letter in the beginning of the name validation check fails to determine that rule "Starts and ends with a lowercase letter or number" has been violated.

The bug reproduced for OBC, Backing store, Blocking pool, Namespace store, Bucket class.

The bug cannot be reproduced when forbidden symbol taking place in the end of the input.

Same time 'Only lowercase letters, numbers, non-consecutive periods, or hyphens' rule check works well

Version of all relevant components (if applicable):
OC version:
Client Version: 4.12.0-202208031327
Kustomize Version: v4.5.4
Server Version: 4.13.0-0.nightly-2023-04-29-073308
Kubernetes Version: v1.26.3+b404935

OCS verison:
ocs-operator.v4.13.0-179.stable              OpenShift Container Storage   4.13.0-179.stable              Succeeded

Cluster version
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.13.0-0.nightly-2023-04-29-073308   True        False         2d23h   Cluster version is 4.13.0-0.nightly-2023-04-29-073308

Rook version:
rook: v4.13.0-0.8f51fa4563d28d1fbc2a4de72b6aa3b2f1ddd7fd

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
no

Is there any workaround available to the best of your knowledge?
-

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?
every time

Can this issue reproduce from the UI?
yes

If this is a regression, please provide more details to justify this:
new feature, not a regression

Steps to Reproduce:
1. login to management console
2. navigate to a page of creation of any resource [OBC, Backing store, Blocking pool, Namespace store, Bucket class]
3. click create resource and write an input such as "{abcdefg" or any valid input name but with uppercase letter or punctuation symbol as a first symbol


Actual results:
'Starts and ends with a lowercase letter or number' - success status
'Only lowercase letters, numbers, non-consecutive periods, or hyphens' - error status


Expected results:
'Starts and ends with a lowercase letter or number' - error status
'Only lowercase letters, numbers, non-consecutive periods, or hyphens' - error status

Additional info:

Comment 7 Daniel Osypenko 2023-08-17 08:10:27 UTC
fixed, test run: http://pastebin.test.redhat.com/1107606

Comment 10 errata-xmlrpc 2023-11-08 18:50:22 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.14.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-2023:6832

Comment 11 Red Hat Bugzilla 2024-03-08 04:25:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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