Then it's fixed.. that's as far as I've got, but its midnight here and I need to get up for the meeting early in the morning, so someone can take off from where I left it. By either seeing why its removed from 'self._app_call()', butting my hack in, or placing it somewhere better.
OK so it seems the swift.authorize method is only being called once, when a subrequest is issued there is no swift.authorize. In fact during debugging directly before https:/ /github. com/openstack/ swift/blob/ master/ swift/common/ middleware/ dlo.py# L236 swift.authorize exists in the req object, directly afterwards it doesn't.
If I do something like:
swift_authorize = req.environ. get('swift. authorize' ) call(req. environ) 'swift. authorize' ] = swift_authorize
resp_iter = self._app_
req.environ[
Then it's fixed.. that's as far as I've got, but its midnight here and I need to get up for the meeting early in the morning, so someone can take off from where I left it. By either seeing why its removed from 'self._app_call()', butting my hack in, or placing it somewhere better.
Night.