yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37299
[Bug 1489125] [NEW] FWaaS Long name or description causes 500
Public bug reported:
The FWaaS REST interface is not checking string lengths, so a name
greater than 255 characters or a description greater than 1024 will
cause creations to fail with a 500 INTERNAL SERVER error due to a "Data
too long for column" DB error internally.
$ neutron firewall-create --name
NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
testpolicy
Request Failed: internal server error while processing your request.
Too long names are a user issue, so with validation would receive a better user-focused response:
neutron firewall-create --name
NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
testpolicy
Invalid input for name. Reason:
'NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'
exceeds maximum length of 255.
** Affects: neutron
Importance: Undecided
Assignee: James Arendt (james-arendt-7)
Status: New
** Changed in: neutron
Assignee: (unassigned) => James Arendt (james-arendt-7)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1489125
Title:
FWaaS Long name or description causes 500
Status in neutron:
New
Bug description:
The FWaaS REST interface is not checking string lengths, so a name
greater than 255 characters or a description greater than 1024 will
cause creations to fail with a 500 INTERNAL SERVER error due to a
"Data too long for column" DB error internally.
$ neutron firewall-create --name
NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
testpolicy
Request Failed: internal server error while processing your request.
Too long names are a user issue, so with validation would receive a better user-focused response:
neutron firewall-create --name
NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
testpolicy
Invalid input for name. Reason:
'NameLongerThan255Characters01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'
exceeds maximum length of 255.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1489125/+subscriptions
Follow ups