Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-6206

BuildConfig Environment tab: different errors when the form is not filled completely

XMLWordPrintable

    • 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:

      1. Usability error: When the user doesn't enter a name this entries are just dropped when the form is saved.
      2. 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:

      1. Open developer perspective
      2. Navigate to Builds
      3. Click on "Create BuildConfig" button
      4. Just create the BuildConfig without additional changes
      5. Switch to the "Environment" tab
      6. Press "Add variable" or "Add from ConfigMap or Secret", enter an value or select a resource WITHOUT adding a name
      7. Press "Save" (environment variable without a name is just dropped)

      Steps to Reproduce the crash:

      1. Open developer perspective
      2. Navigate to Builds
      3. Click on "Create BuildConfig" button
      4. Just create the BuildConfig without additional changes
      5. Switch to the "Environment" tab
      6. Press "Add from ConfigMap or Secret", add a name but DO NOT selecting a ConfigMap or Secret
      7. Press "Save"

      Actual results:

      1. Usability error: Environment variables without a name are just dropped
      2. Crash: Crash

      Expected results:

      1. 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.
      2. Crash: No crash

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      4.9.0-0.nightly-2021-07-25-125326

      Additional info:

      None

              cjerolim Christoph Jerolimov
              cjerolim Christoph Jerolimov
              Abhinandan Das Abhinandan Das
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: