yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38034
[Bug 1489125] Re: FWaaS Long name or description causes 500
** Changed in: neutron
Status: Fix Committed => Fix Released
** Changed in: neutron
Milestone: None => liberty-3
--
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:
Fix Released
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
References