Saving DAST Site Profile results in a 404
Summary
If you are create a new Site Profile, clicking Save will result in a 404 although a profile is created. If you are trying to edit an existing Site Profile, an attempt to save the changes results in a 404 and data is not saved. Cancelling the edit screen also results in a 404. The URL redirects to
group/sub-group/-/security/configuration/dast
rather than group/sub-group/-/security/configuration/dast_scans
without any parameters.
Steps to reproduce
- Create a DAST Site Profile under
group/sub-group/-/security/configuration/dast_scans#site-profiles
Note that you'll receive a 404 when setting it up. - Edit an existing Site Profile under Security & Compliance > Configuration > Managed DAST Scans > Site Profile > Edit
- Make a change such as adding
Additional request headers (Optional)
- Click Save (or cancel)
Example Project
See ZD Ticket
What is the current bug behavior?
Saving or cancelling a Site Profile results in a 404
What is the expected correct behavior?
Saving the page should save the data and return to the previous page. Cancelling should return you to the previous page.
Relevant logs and/or screenshots
- See .har included in the ZD Ticket
- Logs did not produce any exceptions or noteable data
Output of checks
This bug happens on GitLab.com 14.0.0-pre 9b1c6698078
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)