Reviewed: https://review.opendev.org/c/openstack/neutron-lib/+/835234 Committed: https://opendev.org/openstack/neutron-lib/commit/da2baf389c85548b5c0b475a651aaf22bd7d9701 Submitter: "Zuul (22348)" Branch: master
commit da2baf389c85548b5c0b475a651aaf22bd7d9701 Author: Slawek Kaplonski <[email protected]> Date: Fri Mar 25 14:50:33 2022 +0100 Add oslo_policy.InvalidScope exception to the api faults map With enforcing scopes enabled in Neutron, oslo_policy can raise InvalidScope exception while enforcing policy rules. So this exception type should be handled in the same way as it is with PolicyNotAuthorized. Otherwise neutron returns 500 if InvalidScope exception was raised by the policy enforce. Closes-Bug: #1959333 Change-Id: Iad1e2c9f797091d728d419c6b9dc67d861d4214a ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1959333 Title: Error 500 after request with Invalid Scope Status in neutron: Fix Released Bug description: After patch https://review.opendev.org/c/openstack/neutron/+/821208 was merged, when scope enforcement is enabled and API request with wrong scope is made, there is unhandled InvalidScope exception raised and error 500 returned to user. It should be properly handled and some better error returned. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1959333/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

