No validation for trigger update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Karbor |
Fix Released
|
Undecided
|
liushuai |
Bug Description
In trigger creation, there are validations for input parameters.
But in trigger update with the same trigger info, there are none.
Trigger info:
{"trigger_info": {
"name": "Trigger update",
"type": "time",
"properties": {
"format": "calendar",
"pattern": "BEGIN:
"start_time": "2018-02-07 08:50:00",
"end_time": "2018-02-10 08:30:00",
"window": 1900
}
}
}
POST http://
It returns:
{
"badRequest": {
"message": "The trigger windows 1900 must be between 900 and 1800",
"code": 400
}
}
PUT http://
It returns:
{
"trigger_info": {
},
"type": "time",
"id": "172fab09-
"name": "Trigger update"
}
}
Changed in karbor: | |
assignee: | nobody → Eric Xie (eric-xie) |
Changed in karbor: | |
assignee: | Eric Xie (eric-xie) → liushuai (liushuai503) |
Fix proposed to branch: master /review. openstack. org/620884
Review: https:/