Hello community, here is the log from the commit of package python-bugzilla for openSUSE:Factory checked in at Wed Aug 26 15:53:09 CEST 2009. -------- --- python-bugzilla/python-bugzilla.changes 2009-07-22 09:18:45.000000000 +0200 +++ python-bugzilla/python-bugzilla.changes 2009-08-26 12:57:23.000000000 +0200 @@ -1,0 +2,5 @@ +Wed Aug 26 09:18:54 UTC 2009 - mvyskocil@suse.cz + +- Added a patch with support of obfuscated passwords introduced in osc-0.121 + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- 0003-obfuscated-password-support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bugzilla.spec ++++++ --- /var/tmp/diff_new_pack.gqHGyD/_old 2009-08-26 15:52:21.000000000 +0200 +++ /var/tmp/diff_new_pack.gqHGyD/_new 2009-08-26 15:52:21.000000000 +0200 @@ -20,7 +20,7 @@ Name: python-bugzilla Version: 0.5 -Release: 1 +Release: 2 Summary: Python library for bugzilla Group: Development/Libraries/Python License: GPL v2 or later @@ -30,6 +30,7 @@ Source: https://fedorahosted.org/releases/p/y/python-bugzilla/%{name}-%{version}.tar.bz2 Patch0: 0001-Use-LWPCookieJar-by-default.patch Patch1: 0002-NovellBugzilla-implementation.patch +Patch2: 0003-obfuscated-password-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %{py_requires} @@ -54,6 +55,7 @@ %setup -q %patch0 -p1 -b .use-lwpcookiejar-by-default %patch1 -p1 -b .novellbugzilla-implementation +%patch2 -p1 -b .obfuscated-password %build export CFLAGS="%{optflags}" ++++++ 0003-obfuscated-password-support.patch ++++++
From e286a5be2446a00f91bb498f0feeffae4ec3aa05 Mon Sep 17 00:00:00 2001 From: Michal Vyskocil
Date: Wed, 26 Aug 2009 11:08:36 +0200 Subject: [PATCH] obfuscated password support in oscrc
The osc client introduced an obfuscated passwords (not secure, but many times requested by a community), so this patch to readconfig method adds an ability to read passx options. It also fixes a small (but mandatory bug) in a condition which decides about read or not. --- bugzilla/nvlbugzilla.py | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bugzilla/nvlbugzilla.py b/bugzilla/nvlbugzilla.py index 35202a4..0d88db1 100644 --- a/bugzilla/nvlbugzilla.py +++ b/bugzilla/nvlbugzilla.py @@ -138,11 +138,18 @@ If you want cache the cookies and speedup the repeated connections, remove it or for cookie in self._iter_domain_cookies(): cookie.expires = 0 + @classmethod + def _read_osc_password(cls, c): + # supports obfuscated passwords introduced in osc-0.121 + if c.has_option(cls.obs_url, 'passx'): + return c.get(cls.obs_url, 'passx').decode('base64').decode('bz2') + return c.get(cls.obs_url, 'pass') + def readconfig(self, configpath=None): super(NovellBugzilla, self).readconfig(configpath) oscrc=os.path.expanduser('~/.oscrc') - if not self.user and not self.password \ + if not self.user or not self.password \ and os.path.exists(oscrc): from ConfigParser import SafeConfigParser, NoOptionError c = SafeConfigParser() @@ -156,7 +163,7 @@ If you want cache the cookies and speedup the repeated connections, remove it or try: self.user = c.get(obs_url, 'user') - self.password = c.get(obs_url, 'pass') + self.password = self._read_osc_password(c) bugzilla.base.log.info("Read credentials from ~/.oscrc") except NoOptionError, ne: return -- 1.6.3.3 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org