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

Plugin store "hasCSPViolation" is not being set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.19.0
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          CSP violations caused by plugins are not being properly displayed in the console because the "hasCSPViolation" flag is not being set in the plugin store when a violation is detected. This was a regression introduced by https://github.com/openshift/console/pull/14486 during a rebase.

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

          4.19

      How reproducible:

          always

      Steps to Reproduce:

          1. Deploy a cluster with tech preview feature set enabled
          2. Follow instructions in the console dynamic plugin demo to deploy it on the cluster, but modify the image in oc-manifest.yaml to use "quay.io/yapei/console-demo-plugin-csp:latest".
          3. Visit the first Demo Plugin > Dynamic Nav 1 in the nav bar
          4. Visit the overview page
          5. Click the plugin status item on the overview page
          

      Actual results:

          No CSP violations are surfaced to the overview page

      Expected results:

          CSP violation status should be shown on the overview page

      Additional info:

          

              rh-ee-jonjacks Jon Jackson
              rh-ee-jonjacks Jon Jackson
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: