Argument validation for various API endpoints

Bug #1961595 reported by Vadym Markov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Undecided
Unassigned

Bug Description

Currently, not all request handlers validate arguments passed from client. It leads to response 500 in case of malformed requests.

Affected endpoints:

1. http://<horizon url>/api/glance/metadefs/namespaces/?=
resource_type is required argument here
2. https://<horizon url>/auth/switch/<project id>/?next=somemalformedredirect
Redirect is not validated, in case of non-existing url it raises NoReverseMatch or 500 depending on dashboard config

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/horizon/+/830410

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.