-
Bug
-
Resolution: Done
-
Normal
-
openshift-4.8, openshift-4.9
-
False
-
False
-
0
-
Undefined
-
Not Supported
-
ODC Sprint 205
-
Moderate
Description of problem:
When the user makes changes to a BuildConfig (or Pod) with the environment page or tab this could result in different errors:
- Usability error: When the user doesn't enter a name this entries are just dropped when the form is saved.
- Crash: When the user enters a name but do not enter a ConfigMap or Secret value the form crashs after saving. (The data are saved and the form will crash now when the user opens the tab.)
Prerequisites (if any, like setup, operators/versions):
None
Steps to Reproduce the usability error:
- Open developer perspective
- Navigate to Builds
- Click on "Create BuildConfig" button
- Just create the BuildConfig without additional changes
- Switch to the "Environment" tab
- Press "Add variable" or "Add from ConfigMap or Secret", enter an value or select a resource WITHOUT adding a name
- Press "Save" (environment variable without a name is just dropped)
Steps to Reproduce the crash:
- Open developer perspective
- Navigate to Builds
- Click on "Create BuildConfig" button
- Just create the BuildConfig without additional changes
- Switch to the "Environment" tab
- Press "Add from ConfigMap or Secret", add a name but DO NOT selecting a ConfigMap or Secret
- Press "Save"
Actual results:
- Usability error: Environment variables without a name are just dropped
- Crash: Crash
Expected results:
- Usability error: The name should be marked as required. The form should disable the create button when a value is entered or selected without a name.
- Crash: No crash
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
4.9.0-0.nightly-2021-07-25-125326
Additional info:
None
- is related to
-
ODC-6238 Environment page: Invalid form state should disable the save button
- Closed
- links to