Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-32097

Unable to create alert silence in UI though "creator" filed is NOT mandatory

XMLWordPrintable

    • Low
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the Red{nbsp} {product-title} web console did not require the `Creator` field as a mandatory field. API changes specified an empty value for this field, but a user profile could still create silent alerts. With this release, the API marks the `Creator` field as a mandatory field for a user profile that needs to create silent alerts. (link:https://issues.redhat.com/browse/OCPBUGS-32097[*OCPBUGS-32097*])
      Show
      * Previously, the Red{nbsp} {product-title} web console did not require the `Creator` field as a mandatory field. API changes specified an empty value for this field, but a user profile could still create silent alerts. With this release, the API marks the `Creator` field as a mandatory field for a user profile that needs to create silent alerts. (link: https://issues.redhat.com/browse/OCPBUGS-32097 [* OCPBUGS-32097 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-31931. The following is the description of the original issue:

      Description of problem:

      When creating alerting silence from RHOCP UI without specifying "Creator" field, error "createdBy in body is required" even though field "Creator" is not marked as mandatory.

      Version-Release number of selected component (if applicable):

      4.15.5

      How reproducible:

      100%

      Steps to Reproduce:

          1. Login to webconsole (Admin view)
          2. Observe > Alerting
          3. Select the alert to silence
          4. Click Create Silence.
          5. in Info section, update the "Comment" field and skip the "Creator" field. Now, click on Create button.
          6. It will throw an error "createdBy in body is required". 
          

      Actual results:

      Able to create alerting silence without specifying "Creator" field.

      Expected results:

      User should not be able to create silences without specifying "Creator" field as it should be a mandatory.

      Additional info:

      The steps works well for prior version of RHOCP 4.15 (tested on 4.14)

            gbernal@redhat.com Gabriel Bernal
            openshift-crt-jira-prow OpenShift Prow Bot
            Junqi Zhao Junqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: