Public bug reported: Current VPNaaS returns a 500 INTERNAL SERVER error when given long names or descriptions.
Instead should give a 400 BAD REQUEST explaining user given value exceeds maximum threshold, like: neutron vpn-service-create router1 --name 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Invalid input for name. Reason: '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' exceeds maximum length of 255. Applies to both names and descriptions. ** Affects: neutron Importance: Undecided Assignee: James Arendt (james-arendt-7) Status: In Progress ** 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/1558306 Title: VPNaaS returns 500 INTERNAL on long names Status in neutron: In Progress Bug description: Current VPNaaS returns a 500 INTERNAL SERVER error when given long names or descriptions. Instead should give a 400 BAD REQUEST explaining user given value exceeds maximum threshold, like: neutron vpn-service-create router1 --name 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Invalid input for name. Reason: '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' exceeds maximum length of 255. Applies to both names and descriptions. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1558306/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp