There is no validation for POST request on "fuel role --create"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Vitalii Kulanov |
Bug Description
Problem:
There is no any validation for role create operation.
As an impact, user can create role with invalid volumes_
Same issue for role update operation: https:/
Steps to reproduce:
Almost same as in bug #1467097:
Over fuel cli:
Create file with role description, invalidvolumes.yaml (you can dowload some existing role for template);
Modify created file: set "id" value at the "volumes_
Create new role with the command:
fuel role --rel 2 --role invalidvolumes --create --file invalidvolumes.yaml
Expected Result:
400 bad request
Actual result:
Role with invalid volume is successfully created:
# fuel role --create --release 2 --role invalidvolumes --file invalidvolumes.yaml
Role invalidvolumes successfully created from invalidvolumes.
Reproducibility: always
Workaround: no
Changed in fuel: | |
assignee: | nobody → Vitalii Kulanov (vitaliy-t) |
tags: | added: area-python |
Changed in fuel: | |
importance: | Undecided → High |
milestone: | none → 9.1 |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/365321
Review: https:/