Public bug reported: in [1] if policy_method == enforce an PolicyNotAuthorizedException is triggered. However, the exception translation hook is not called, most likely because the on_error hook is not installed on other policy hooks. This might be logical and should therefore not be considered a pecan bug.
The policy hook should take this into account and handle the exception. [1] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/pecan_wsgi/hooks/policy_enforcement.py#n94 ** Affects: neutron Importance: Undecided Assignee: Salvatore Orlando (salvatore-orlando) Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1505831 Title: Pecan: policy evaluation error can trigger 500 response Status in neutron: New Bug description: in [1] if policy_method == enforce an PolicyNotAuthorizedException is triggered. However, the exception translation hook is not called, most likely because the on_error hook is not installed on other policy hooks. This might be logical and should therefore not be considered a pecan bug. The policy hook should take this into account and handle the exception. [1] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/pecan_wsgi/hooks/policy_enforcement.py#n94 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1505831/+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