Lack of validation on the Flow
model specified can lead to issues in the consistency checks
#43
Labels
Flow
model specified can lead to issues in the consistency checks
#43
As of now, the lack of validation in the
Flow
model that's used by the method_install_flows
can lead to issues in the consistency checks if a wrong type is passed, for exampledl_vlan
is supposed to be an integer type, but accidentally if someone passes as astring
the request would be accepted and cast, but it would lead issues in the consistency check when comparing the data structure.How to reproduce
/api/kytos/flow_manager/v2/flows/{{dpid}}
Solution
Start validating the model in the boundaries at the rest endpoint and also in the listen_to event and pass it down ensuring the validation is all set to methods/functions that need this data structure.
The text was updated successfully, but these errors were encountered: