From nobody Mon Apr 29 04:10:49 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VSVHZ2crqz5J9N1; Mon, 29 Apr 2024 04:10:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VSVHZ0XvLz400l; Mon, 29 Apr 2024 04:10:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714363850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0d2hnZC/Ff9atTIwJk9dNtvBX5zb4/WaraipTUaG0LI=; b=rEBNkHD/2zIXG98qSwY1+eOUq2+eTVyr8qzFtZ1IXr5t49LUHbCcSbl6qadpFgWmL56/hJ 3d/jRrrUCKdd8dyG+kbV/aFZ8Nwfg9MUJSFURqF+w573TTCTfPkZ7i+bwkuILcy9MvmeAx Ror6XkaDEdlWwoILxseZxGFUaPcMV7kucR6IhrcglJCNqzBcO6NsDLI83dVn6n2XV915dq sP/6nAzZWFzbRHibQiNhGzcEpolthkIym6/d0sh65TODv/ItsLGY8sfPhYegtD9CMDJPCe g2iCZX+1EjYurT1ABOLTAlRm51b1MGQ1GpVe6Rgbz3unzJZIBEibuIvzZNyNmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714363850; a=rsa-sha256; cv=none; b=k4i4KftS+zAVspCqMhzrabrn1+mGzsl2O9kERZ6wwktep1m9ogGBOpUwZ2lz7PyUS21w+0 pKIM+U7+qesB5+ZVbrPj0w6f+/nBjt/r+0DFDL8pBYjwWjnj69LbnK0EDYPOi+exfc6sBa rjBCxweBbsEBZvDVvzokovIbMeF1U8S3TSC8EhGoSBWz+yk/bpS681xMn31vtfsgAfMX+I JH2skQRT5QSaVDhNOBkUfOTI4jdyuPEwE09LDYpJm2s4UtqbIu/IgNsaEupu8UX5Pnh/+E jcoAm5PPWMIRhCnsCBcyw40yEOTW0btuqW2IV5M3bytPfMh/ycYMVul1G2XDMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714363850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0d2hnZC/Ff9atTIwJk9dNtvBX5zb4/WaraipTUaG0LI=; b=s0w5AZ4vaM9Vvad/woo7ulBvQwvuONn9dpB9QNTNNxlqPHF6yIMpYHyjkQE1ksCqLw2Bwz 1IQql7N3NZSN5gUwi6u/3CPlv9tGqD6G3bGNM9UiqJpiFrJqcFekQlmc0aeDVErb/sNKNp 7RIGA4ZtU+X8p2Vks5Em1+GzVIfh9+N/rE2jhVGC22N+xTMNuaatQjpRjrTEo+Bo8djz8J zQyTprvCqOUVzwoFHjj6OBZblLoLjOYzJ5+u7gSL6BKyX+tCgTWEgFT50Tq0FNH1+kTf73 d1ehd6lN4htnlG3ZMAslYx/j0OubegtLcN+hfzdQGxUuy0e56DW7/s9zKxdbvg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VSVHY6sXDztjc; Mon, 29 Apr 2024 04:10:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43T4Anuw019691; Mon, 29 Apr 2024 04:10:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43T4Anv0019688; Mon, 29 Apr 2024 04:10:49 GMT (envelope-from git) Date: Mon, 29 Apr 2024 04:10:49 GMT Message-Id: <202404290410.43T4Anv0019688@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: e199513d74a5 - main - devel/py-python-bugzilla: Fix for API key leak List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e199513d74a5585e71a2aa278fc495f1ce3c41fe Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=e199513d74a5585e71a2aa278fc495f1ce3c41fe commit e199513d74a5585e71a2aa278fc495f1ce3c41fe Author: Ricardo Branco AuthorDate: 2024-04-26 19:44:26 +0000 Commit: Li-Wen Hsu CommitDate: 2024-04-29 04:10:29 +0000 devel/py-python-bugzilla: Fix for API key leak Fixes https://github.com/python-bugzilla/python-bugzilla/issues/187 PR: 278612 MFH: 2024Q2 Pull Request: https://github.com/freebsd/freebsd-ports/pull/253 --- devel/py-python-bugzilla/Makefile | 1 + .../files/patch-bugzilla___session.py | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/devel/py-python-bugzilla/Makefile b/devel/py-python-bugzilla/Makefile index 42db2a632006..35eb957c3a9d 100644 --- a/devel/py-python-bugzilla/Makefile +++ b/devel/py-python-bugzilla/Makefile @@ -1,5 +1,6 @@ PORTNAME= python-bugzilla PORTVERSION= 3.2.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-python-bugzilla/files/patch-bugzilla___session.py b/devel/py-python-bugzilla/files/patch-bugzilla___session.py new file mode 100644 index 000000000000..bf9849a0eef2 --- /dev/null +++ b/devel/py-python-bugzilla/files/patch-bugzilla___session.py @@ -0,0 +1,23 @@ +--- bugzilla/_session.py ++++ bugzilla/_session.py +@@ -98,14 +98,14 @@ def request(self, *args, **kwargs): + 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: ++ # 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 requests.HTTPError as e: + # Scrape the api key out of the returned exception string