Commit graph

265 commits

Author SHA1 Message Date
Tomas Kopecek
6b18dff97a remove release from User-Agent header
Related: https://pagure.io/koji/issue/392

It's unnecessary detail here, let's leave it as major version value only
for now.
2017-04-25 14:30:23 +02:00
Tomas Kopecek
c769477d94 raise error on non-existing profile 2017-04-21 16:34:10 -04:00
Mike McLean
76dc071fe8 more tests 2017-04-21 16:20:24 -04:00
Mike McLean
a4131e354c apply get_header_field enhancements from kobo and update unit test 2017-04-21 16:20:24 -04:00
Mike McLean
0189cf98ea typo 2017-04-05 12:29:23 -04:00
Mike McLean
649a6e710f for volume compat fixes 2017-04-04 21:09:24 -04:00
Mike McLean
5231105478 only pass volume opt to downloadTaskOutput if needed
Fixes #368
2017-04-04 17:50:55 -04:00
Mike McLean
8346a60976 more renaming 2017-03-30 09:47:20 -04:00
Mike McLean
c86b5c3ac0 first stab at renaming signed repos to dist repos
sed -i -e 's/signed\(.\?[Rr]epo\)/dist\1/g'
sed -i -e 's/Signed\(.\?[Rr]epo\)/Dist\1/g'
2017-03-30 09:47:20 -04:00
Mike McLean
75ac8be3b7 avoid directory namespace conflicts with signed repos 2017-03-30 09:45:59 -04:00
Mike McLean
6a6f79dec3 remove incorrect singleton syntax in _taskLabel() 2017-03-30 09:37:56 -04:00
Jay Greguske
4f4c7e3d4e implement multilib 2017-03-30 09:37:56 -04:00
Jay Greguske
f1a45e0024 signed-repo kojiweb tweaks 2017-03-30 09:37:56 -04:00
Jay Greguske
76d8caf33b initial builder implementation for signed-repos 2017-03-30 09:37:56 -04:00
Jay Greguske
53c379b6f8 initial hub implementation for signed-repos 2017-03-30 09:37:56 -04:00
Tomas Kopecek
4ef0bc2051 use only relative paths + volumes in downloadTaskOutput 2017-03-28 11:46:47 +02:00
Mike McLean
8a08a3e796 volume opt for checkUpload 2017-03-28 11:46:47 +02:00
Tomas Kopecek
8868d184cb propagate volume through hub 2017-03-28 11:46:47 +02:00
Tomas Kopecek
323987e376 Allow uploading files to non-default volumes 2017-03-28 11:46:47 +02:00
Mike McLean
1b46d0ad2e debug/debug_xmlrpc should default to False 2017-03-20 15:34:12 -04:00
Chenxiong Qi
085711cd33 Add debug and debug_xmlrpc to default koji config
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2017-03-20 15:34:12 -04:00
Tomas Kopecek
93034f64f3 idioms 2017-03-17 11:35:53 -04:00
Tomas Kopecek
cf214de792 remove sys.exc_type, exc_value, exc_traceback 2017-03-17 11:35:53 -04:00
Tomas Kopecek
bcef98b1c4 remove unused function parse_timestamp 2017-03-15 16:30:50 +01:00
Tomas Kopecek
186d6db4b2 Handle empty file upload 2017-03-07 18:22:32 +01:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Mike McLean
6f45b92ac5 fixEncodingRecurse function 2017-02-16 16:26:42 -05:00
Mike McLean
eb7a1e369f check http request status before attempting to decode response 2017-02-14 11:19:15 -05:00
Patrick Uiterwijk
253161f229 Allow principal and keytab in cli config
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-01-17 14:12:19 -05:00
Tomas Kopecek
0407185901 Don't require cert/serverca for kojid
Now is demanded from user to supply kojid-specific configuration or
previously expected files are used as defaults
(/etc/kojid/serverca.crt). So, user has no option to not use these and
use just system-wide certificates.

If these values are not specified, python-requests would fall back to
/etc/pki supplied files. If there is also ssl_verify=True (which is
default), everything should work correctly.
2017-01-13 10:46:41 -05:00
Tomas Kopecek
5612b1a709 Error message for missing certificates 2017-01-13 10:46:41 -05:00
Mike McLean
a12f26b07d add another pattern to is_requests_cert_error() 2016-12-08 18:37:02 -05:00
Mike McLean
8d3a736637 allow setting no_ssl_verify in client config 2016-12-08 18:37:02 -05:00
Mike McLean
bc0e8c0856 avoid try..except..finally 2016-11-23 11:14:23 -05:00
Mike McLean
127d38fbef don't mask kwargs in callMethod 2016-11-23 11:05:48 -05:00
Patrick Uiterwijk
6ec1fc28e4 Restore baseurl to original if GSSAPI login didn't work
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:58:21 -05:00
Patrick Uiterwijk
fc176d7de4 Disable automatic request retries for GSSAPI authentication
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:41 -05:00
Patrick Uiterwijk
e85e442dcd Allow callMethod calls to specify that no retries should be attempted
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:39 -05:00
Patrick Uiterwijk
699865de19 Determine if a request error is caused by certificates with requests
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:29 -05:00
Patrick Uiterwijk
c1593411db Header values need to be strings
This has seemingly always been documented, and broken in a recent release.

Reference: https://github.com/kennethreitz/requests/issues/3477

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 23:26:19 +00:00
Patrick Uiterwijk
480cdfb540 Implement GSSAPI login
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 16:45:31 -05:00
Mike McLean
f3a6bc86bc more smarts for ssl bug workaround 2016-11-22 16:41:31 -05:00
Mike McLean
20d67b5c63 ssl hack 2 2016-11-22 16:41:31 -05:00
Mike McLean
f86ca05c0e force a new session in ssl_login 2016-11-22 16:41:31 -05:00
Mike McLean
ef790857ad fix return 2016-11-22 16:41:31 -05:00
Mike McLean
3d16485c6f grab_session_options function 2016-11-22 16:41:31 -05:00
Mike McLean
33e1bdee97 force https when using ssl auth 2016-11-22 16:41:31 -05:00
Mike McLean
7b33327030 avoid tickling race condition with common keep alive timeout setting
The default KeepAliveTimeout in Apache httpd 2.4 is 5 seconds. Sleeping for that
same time and then resuming calls can tickle a race condition.

The previous commit /should/ catch that now, but there's no sense hitting that
error so often.

See also: https://github.com/mikem23/keepalive-race
2016-11-22 16:41:31 -05:00