Bug 1925261 - Items marked as mandatory in KMS Provider form are not enforced
Summary: Items marked as mandatory in KMS Provider form are not enforced
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.0
Assignee: Ankush Behl
QA Contact: Filip Balák
URL:
Whiteboard:
Depends On:
Blocks: 1931874 1932272
TreeView+ depends on / blocked
 
Reported: 2021-02-04 17:23 UTC by Filip Balák
Modified: 2021-07-27 22:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1932272 (view as bug list)
Environment:
Last Closed: 2021-07-27 22:41:34 UTC
Target Upstream Version:


Attachments (Terms of Use)
StorageCluster installation wizard with error message (116.57 KB, image/png)
2021-02-04 17:23 UTC, Filip Balák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8147 0 None open Bug 1925261: Fix KMS validation error 2021-02-16 17:52:50 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:42:14 UTC

Description Filip Balák 2021-02-04 17:23:40 UTC
Created attachment 1755097 [details]
StorageCluster installation wizard with error message

Description of problem (please be detailed as possible and provide log
snippests):
User can select Service name, Address, Port and Token when creating StorageCluster in StorageCluster installation wizard. All those items are marked as mandatory with symbol *. Only token is enforced and the rest of the items can be empty and user can proceed in form. When user clicks on Create button in next step, there appears error message:
  An error occurred
  f is null

Version of all relevant components (if applicable):
ocs-operator.v4.7.0-250.ci

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

Can this issue reproduce from the UI?
yes


Steps to Reproduce:
1. Navigate to Operators -> Installed operators -> OpenShift Container Storage
2. Start creating new StorageCluster.
3. In second step "Configure" of StorageCluster creation wizard select "Enable Encryption" and "Connect to an external key management service".
4. Fill some string into Token. Leave Service name, Address and Port empty.
5. Click Next and proceed to third step.
6. Click Create.


Actual results:
There appears an error message:
  An error occurred
  f is null

Expected results:
Form should not allow user to continue to third step.

Additional info:

Comment 2 Nishanth Thomas 2021-02-13 05:33:36 UTC
Moving this out of 4.7.0, not a blocker

Comment 4 Filip Balák 2021-02-23 09:48:27 UTC
Required attributes are enforced. --> VERIFIED

Tested with:
OCP 4.8.0-0.nightly-2021-02-23-013453
OCS ocs-operator.v4.7.0-270.ci

Comment 7 errata-xmlrpc 2021-07-27 22:41:34 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.8.2 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:2438


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