String attributes should limit the length in API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Mark McClain |
Bug Description
I use the latest code of Grizzly, and create a network. The name of network is longer then 255 characters.
Then I list networks, the name of network has only 255 characters.
This is my request:
{
"network":
{
"name": "test1234567890
}
}
And this is list network responce:
{
"networks": [
{
"name": "test1234567890
"id": "40a59f54-
}
]
}
The name lost 9 characters.
I found the code in /quantum/
class Network(
"""Represents a v2 quantum network."""
name = sa.Column(
ports = orm.relationshi
subnets = orm.relationshi
status = sa.Column(
admin_state_up = sa.Column(
shared = sa.Column(
It defines ths name's limit is 255 characters. But there is no parameter check when create network.
Changed in neutron: | |
status: | New → Triaged |
assignee: | nobody → Mark McClain (markmcclain) |
importance: | Undecided → Medium |
This bug has come up previously and is a known issue. I expect that we'll address this in Icehouse as there will be proposals to update how we process API requests.