variable referenced before assignment error in keystone.contrib.federation.idp._sign_assertion
Bug #1481274 reported by
Roman Bogorodskiy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Roman Bogorodskiy |
Bug Description
The _sign_assertion() function from keystone.
However, if fileutils.
File "keystone/
UnboundLoca
Changed in keystone: | |
assignee: | nobody → Roman Bogorodskiy (novel) |
status: | New → In Progress |
tags: | added: federation |
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | liberty-3 → 8.0.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/208163 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=defa9eeb51d be8c035df911b18 ab58b41459be80
Committed: https:/
Submitter: Jenkins
Branch: master
commit defa9eeb51dbe8c 035df911b18ab58 b41459be80
Author: Roman Bogorodskiy <email address hidden>
Date: Sat Aug 1 18:55:29 2015 +0300
Fix unbound error in federation _sign_assertion
The _sign_assertion() function from keystone. contrib. federation. idp
assigns file_path variable in the try block and then tries to clean
up the file in the finally block.
However, if fileutils. write_to_ tempfile call raises then file_path
is not assigned that results in UnboundLocalError.
Fix it by explicitly set file_path to None before calling write_to_ tempfile.
fileutils.
Closes-Bug: #1481274 b791f1bed314a94 e63c9cba910
Change-Id: Ib835c0980c20ce