Skip to content

FE: Users cannot update a Scan Execution Policy's name

Summary

Once a scan execution policy has been created, a user cannot update the policy's name

Steps to reproduce

  1. Follow the scan execution creation snippet to create some scan execution policies
  2. Navigate to Security & Compliance => Policies
  3. Create a new scan execution policy
  4. Select the policy and click Edit policy in the sidebar
  5. Modify the name and click Create merge request

Example Project

https://staging.gitlab.com/defend-team-test/cnp-alert-demo/-/security/policies

What is the current bug behavior?

The user is navigated to the merge request where the name has been changed

What is the expected correct behavior?

The user gets a Policy does not exist error on the page

Relevant logs and/or screenshots

Page Screenshot
gif cannot_update_scan_execution_policy_name
Request Data Screen_Shot_2021-08-31_at_3.30.55_PM
Request Response Screen_Shot_2021-08-31_at_3.31.06_PM

Possible fixes

  • frontend Update frontend code to send name to the graphql mutation
Edited by Sashi Kumar Kumaresan