Are Consumer URL and/or Consumer Name optional?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
High
|
Dave McCowan |
Bug Description
A request for creating a consumer without any URL is accepted and a consumer is created:
curl -X POST http://
{
"status":"ACTIVE",
"updated"
"name":
"consumers":[
{
"URL":"",
"name":
}
],
"created"
"container_ref":"http://
"creator_
"secret_refs":[
],
"type":"generic"
}
A request for creating consumer without any Name and URL is also accepted and a consumer is created:
curl -X POST http://
{
"status":"ACTIVE",
"updated"
"name":
"consumers":[
{
"URL":"",
"name":
},
{
"URL":"",
"name":""
}
],
"created"
"container_ref":"http://
"creator_
"secret_refs":[
],
"type":"generic"
}
Is this a valid behavior or should report error when URL or Name is not provided?
Changed in barbican: | |
importance: | Undecided → High |
milestone: | none → pike-1 |
Changed in barbican: | |
status: | New → Confirmed |
Changed in barbican: | |
assignee: | nobody → Dave McCowan (dave-mccowan) |
Both URL and name are coded as required parameters, but no checking is done for an empty string. So "" is treated as a valid name or URL.