Yu Ming Zhu
f41b8c70a7
Bandit [B411]: use defusedxml to prevent remote XML attacks
...
- putting xmlrpc stuff into koji.xmlrpcplus
- adding koji.xmlrpcplus.xmlrpc_server to refer
- replacing refs of original xmlrpc.client.dumps to enhanced
koji.xmlrpcplus.dumps
fixes : #3964
2024-02-02 09:08:18 +01:00
Jana Cupova
5655cea21b
Py3 re pattern fix
2022-05-11 09:59:04 +02:00
Jana Cupova
f42c1aa863
Add as_string option to showOpts for raw string or dict output
...
Fixes: https://pagure.io/koji/issue/3312
2022-05-03 12:47:47 +02:00
Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yuming Zhu
642508ccf6
flake8: follow all F rules
2020-03-03 21:35:08 +08:00
Ken Dreyer
81d685b07d
xmlrpcplus: use parent Marshaller's nil implementation
...
We can enable the None -> "nil" behavior when we instantiate our
Marshaller. RHEL 5 and newer supports allow_none here.
This allows us to drop the dump_nil code from our custom Marshaller and
rely directly on the parent class's method instead.
2020-02-21 09:44:46 +01:00
Ken Dreyer
aa35b84c8c
xmlrpcplus: use parent's int marshalling if possible
...
If we have an int value between xmlrpc.MININT and xmlrpc.MAXINT, we can
rely on stdlib's xmlrpc.Marshaller. This allows us to drop this custom
code.
2020-02-21 09:44:46 +01:00
Yu Ming Zhu
4d29a87e9b
sort imports in koji
2019-12-12 11:00:57 +00:00
Tomas Kopecek
ca86a8fa78
fix xmlrpc encoding error
2019-02-12 16:09:19 -05:00
Tomas Kopecek
7f6b717eb6
python-modernize -f libmodernize.fixes.fix_import
2018-07-11 17:37:39 -04:00
Mike McLean
6bb32b699e
handle DateTime objects in encode_datetime
2017-11-02 15:59:18 -04:00
Mike McLean
cea43dd458
correct range for i8 (64 bit signed)
2017-08-25 16:48:02 -04:00
Mike McLean
4eabd8b7da
py3 fixes for xmlrpcplus
2017-08-25 16:48:02 -04:00
Mike McLean
1604610248
allow_none is always on for us
2017-08-25 16:48:02 -04:00
Mike McLean
98f8b150aa
can't use __dump from parent class
2017-08-25 16:48:02 -04:00
Mike McLean
be2fae90ae
move custom xmlrpc marshaller to its own file
2017-08-25 16:48:02 -04:00