[Bug 933225] [NEW] inability to QA utterly broke DistUpgradeViewKDE
Harald Sitter
apachelogger at ubuntu.com
Thu Feb 16 02:06:59 UTC 2012
Public bug reported:
copyXauth = tempfile.mkstemp("", "adept")
if 'XAUTHORITY' in os.environ and os.environ['XAUTHORITY'] != copyXauth:
shutil.copy(os.environ['XAUTHORITY'], copyXauth)
os.environ["XAUTHORITY"] = copyXauth
<apachelogger> can't load DistUpgradeViewKDE (coercing to Unicode: need string or buffer, tuple found)
<apachelogger> bug 881541
<ubottu> Launchpad bug 881541 in update-manager (Ubuntu) "DistUpgrade/DistUpgradeViewKDE.py uses mktemp -- which is insecure" [Medium,Fix released] https://launchpad.net/bugs/881541
<apachelogger> http://docs.python.org/library/tempfile.html
<apachelogger> mkstemp() returns a tuple containing an OS-level handle to an open file (as would be returned by os.open()) and the absolute pathname of that file, in that order.
<apachelogger> shutil.copy(os.environ['XAUTHORITY'], copyXauth)
<apachelogger> I am the touple in your string <3
print os.environ['XAUTHORITY'] => /tmp/kde-me/xauth-1000-_0
print copyXauth => (13, '/tmp/adeptTXo9jf')
Also: http://docs.python.org/library/shutil.html
shutil.copy(src, dst)
Copy the file src to the file or directory dst. If dst is a directory, a file with the same basename as src is created (or overwritten) in the directory specified. Permission bits are copied. src and dst are path names given as strings.
Thank you for not reading documentation, no testing and getting me to
waste time on this!
I really heart this.... <3 broken software... see.
"The guy who broke my upgrader now has to fix it and send me cookies" ~
Oscar Wild
** Affects: update-manager (Ubuntu)
Importance: Critical
Assignee: Marc Deslauriers (mdeslaur)
Status: Triaged
** Affects: update-manager (Ubuntu Oneiric)
Importance: Critical
Assignee: Marc Deslauriers (mdeslaur)
Status: Triaged
** Changed in: update-manager (Ubuntu)
Status: New => Triaged
** Changed in: update-manager (Ubuntu)
Importance: Undecided => Critical
** Changed in: update-manager (Ubuntu)
Assignee: (unassigned) => Marc Deslauriers (mdeslaur)
** Also affects: update-manager (Ubuntu Oneiric)
Importance: Undecided
Status: New
** Changed in: update-manager (Ubuntu Oneiric)
Status: New => Triaged
** Changed in: update-manager (Ubuntu Oneiric)
Importance: Undecided => Critical
** Changed in: update-manager (Ubuntu Oneiric)
Assignee: (unassigned) => Marc Deslauriers (mdeslaur)
** Changed in: update-manager (Ubuntu Oneiric)
Milestone: None => oneiric-updates
** Changed in: update-manager (Ubuntu)
Milestone: None => ubuntu-12.04-beta-1
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/933225
Title:
inability to QA utterly broke DistUpgradeViewKDE
Status in “update-manager” package in Ubuntu:
Triaged
Status in “update-manager” source package in Oneiric:
Triaged
Bug description:
copyXauth = tempfile.mkstemp("", "adept")
if 'XAUTHORITY' in os.environ and os.environ['XAUTHORITY'] != copyXauth:
shutil.copy(os.environ['XAUTHORITY'], copyXauth)
os.environ["XAUTHORITY"] = copyXauth
<apachelogger> can't load DistUpgradeViewKDE (coercing to Unicode: need string or buffer, tuple found)
<apachelogger> bug 881541
<ubottu> Launchpad bug 881541 in update-manager (Ubuntu) "DistUpgrade/DistUpgradeViewKDE.py uses mktemp -- which is insecure" [Medium,Fix released] https://launchpad.net/bugs/881541
<apachelogger> http://docs.python.org/library/tempfile.html
<apachelogger> mkstemp() returns a tuple containing an OS-level handle to an open file (as would be returned by os.open()) and the absolute pathname of that file, in that order.
<apachelogger> shutil.copy(os.environ['XAUTHORITY'], copyXauth)
<apachelogger> I am the touple in your string <3
print os.environ['XAUTHORITY'] => /tmp/kde-me/xauth-1000-_0
print copyXauth => (13, '/tmp/adeptTXo9jf')
Also: http://docs.python.org/library/shutil.html
shutil.copy(src, dst)
Copy the file src to the file or directory dst. If dst is a directory, a file with the same basename as src is created (or overwritten) in the directory specified. Permission bits are copied. src and dst are path names given as strings.
Thank you for not reading documentation, no testing and getting me to
waste time on this!
I really heart this.... <3 broken software... see.
"The guy who broke my upgrader now has to fix it and send me cookies"
~ Oscar Wild
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/933225/+subscriptions
More information about the foundations-bugs
mailing list