forked from pool/python-bugzilla
Accepting request 1113660 from devel:languages:python
- Fix API Key leak (bsc#1215718) - Add: * 188-fix-api-key-leak.diff OBS-URL: https://build.opensuse.org/request/show/1113660 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzilla?expand=0&rev=33
This commit is contained in:
23
188-fix-api-key-leak.diff
Normal file
23
188-fix-api-key-leak.diff
Normal file
@@ -0,0 +1,23 @@
|
||||
--- a/bugzilla/_session.py 2021-10-05 22:49:16.000000000 +0200
|
||||
+++ b/bugzilla/_session.py 2023-09-25 17:22:39.763856790 +0200
|
||||
@@ -97,14 +97,14 @@
|
||||
if "timeout" not in kwargs:
|
||||
kwargs["timeout"] = timeout
|
||||
|
||||
- response = self._session.request(*args, **kwargs)
|
||||
+ try:
|
||||
+ response = self._session.request(*args, **kwargs)
|
||||
|
||||
- if self._is_xmlrpc:
|
||||
- # Yes this still appears to matter for properly decoding unicode
|
||||
- # code points in bugzilla.redhat.com content
|
||||
- response.encoding = "UTF-8"
|
||||
+ if self._is_xmlrpc:
|
||||
+ # Yes this still appears to matter for properly decoding unicode
|
||||
+ # code points in bugzilla.redhat.com content
|
||||
+ response.encoding = "UTF-8"
|
||||
|
||||
- try:
|
||||
response.raise_for_status()
|
||||
except Exception as e:
|
||||
# Scrape the api key out of the returned exception string
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 25 14:57:10 UTC 2023 - Julio González Gil <jgonzalez@suse.com>
|
||||
|
||||
- Fix API Key leak (bsc#1215718)
|
||||
- Add:
|
||||
* 188-fix-api-key-leak.diff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 21 08:41:46 UTC 2022 - Julio González Gil <jgonzalez@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bugzilla
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,6 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/p/python-bugzilla
|
||||
# PATCH-FIX-UPSTREAM 106-basic-auth.diff bsc#1098219 mcepl@suse.com
|
||||
# Fix basic authentication on bugzilla.suse.com
|
||||
Patch0: 106-basic-auth.diff
|
||||
# PATCH-FIX-UPSTREAM pending https://github.com/python-bugzilla/python-bugzilla/pull/188
|
||||
# Fix API Key leak
|
||||
Patch1: 188-fix-api-key-leak.diff
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
|
||||
Reference in New Issue
Block a user