Skip to content

Commit 7962f74

Browse files
authored
Merge pull request #87 from DrDaveD/fix-headers-bug
Fix bug with sending headers in restclient API
2 parents 684c191 + 789a03b commit 7962f74

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/build-sw-container.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
yum_repo: ['development', 'testing', 'release']
15-
osg_series: ['3.6']
15+
osg_series: ['23', '24']
1616
steps:
17-
- uses: opensciencegrid/build-container-action@v0.3.1
17+
- uses: opensciencegrid/build-container-action@v0.6.1
1818
with:
1919
osg_series: ${{ matrix.osg_series }}
2020
repo: ${{ matrix.yum_repo }}
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
yum_repo: ['development', 'testing', 'release']
33-
osg_series: ['3.6']
33+
osg_series: ['23', '24']
3434
registry:
3535
- url: hub.opensciencegrid.org
3636
username: OSG_HARBOR_ROBOT_USER

osgpkitools/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_request(self, url, headers):
7676
logger.debug("headers " + str(headers))
7777

7878
try:
79-
get_response = self.http.request("GET", url, None, headers)
79+
get_response = self.http.request("GET", url, None, headers=headers)
8080
utils.check_response_500(get_response)
8181
logger.debug("get response status " + str(get_response.status) + ": " + str(get_response.reason))
8282
except http.client.BadStatusLine as exc:

osgpkitools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from .ExceptionDefinitions import *
99

10-
VERSION_NUMBER = "3.7.1"
10+
VERSION_NUMBER = "3.7.2"
1111
HELP_EMAIL = "[email protected]"
1212

1313

rpm/osg-pki-tools.spec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: osg-pki-tools
22
Name: osg-pki-tools
3-
Version: 3.7.1
4-
Release: 2%{?dist}
3+
Version: 3.7.2
4+
Release: 1%{?dist}
55
Source: osg-pki-tools-%{version}.tar.gz
66
License: Apache 2.0
77
Group: Grid
@@ -44,6 +44,12 @@ mv %{buildroot}/%{_prefix}/config/ca-issuer.conf %{buildroot}%{_sysconfdir}/osg/
4444
%config(noreplace) %{_sysconfdir}/osg/pki/ca-issuer.conf
4545

4646
%changelog
47+
* Fri Mar 7 2025 Dave Dykstra <[email protected]> - 3.7.2
48+
- Fix bug in invocation of urllib3.request() in restclient's get_request();
49+
it was passing headers as the 4th parameter instead of identifying it
50+
by name. Broke retrieval of cert with osg-incommon-cert-request in
51+
some cases.
52+
4753
* Wed Oct 23 2024 Matt Westphall <[email protected]> - 3.7.1-2
4854
- Add python3-m2crpyto and python3-urllib3 as runtime requirements
4955

0 commit comments

Comments
 (0)