Skip to content

Project vulnerability errors out when exceed complexity

The project vulnerability errors out:

Error Request Payload
2022-08-30_at_7.35_PM 2022-08-30_at_7.36_PM

This error is happening on staging. This happens when I enable all these feature flags that increase the queries of the page.

echo "Feature.enable(:refactor_vulnerability_tool_filter)" | rails c
echo "Feature.enable(:operational_vulnerabilities_filters)" | rails c
echo "Feature.enable(:security_auto_fix)" | rails c
gon.features
operationalVulnerabilitiesFilters: true
refactorVulnerabilityToolFilter: true
securityAutoFix: true

If I disable any of these, it will reduce the complexity and the queries will go through.

/chatops run feature set operational_vulnerabilities_filters false --staging

Note: I have NOT been able to reproduce this locally.

Steps to reproduce

  1. https://staging.gitlab.com/secure-team-test/security-reports/-/security/vulnerability_report/
  2. Open the developer tools => Network tab
  3. An error will occur

Workaround

  1. If you click on the "Operational vulnerabilities" tab.
  2. Return to the "Development vulnerabilities" tab.
  3. The queries will go through and the page will work as expected

project_vulnerability_report_working_when_switching_tabs__1_

Workaround B

  1. Change the page size to 50 or less
  2. Refresh the page
  3. The queries will go through and the page will work as expected

lower-pagination

Thanks @dpisek for the suggestion on this solution!

Edited by Samantha Ming