Tomas Kopecek
e72a7be0a1
stricter config file permissions
...
Fixes: https://pagure.io/koji/issue/2124
2020-09-07 09:37:11 +02:00
Tomas Kopecek
4240e269bc
fix create_ts for repos
2020-08-26 09:26:00 +02:00
Tomas Kopecek
bf5684a122
fix start_ts
2020-08-26 09:26:00 +02:00
Tomas Kopecek
7855b98ca2
formatTime/Long can handle timestamp
...
Also replaced *_time with *_ts wherever possible.
2020-08-26 09:26:00 +02:00
Tomas Kopecek
a4d63d6454
web: better error message for invalid build
...
Fixes: https://pagure.io/koji/issue/1545
2020-08-18 16:35:43 +02:00
Tomas Kopecek
f8419e3626
remove deprecated krbV support
...
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
60048297dc
fix simple_error_message encoding
...
Fixes: https://pagure.io/koji/issue/2341
2020-07-02 10:28:44 +02:00
Ken Dreyer
0923a2eae2
web: remove "GssapiLocalName off" setting
...
mod_auth_gssapi already defaults GssapiLocalName to off. Simplify our
configuration and just remove this line.
2020-07-01 16:29:34 -06:00
Tomas Kopecek
50bcb6f3bc
replace md5 with sha256
2020-06-24 14:42:01 +02:00
Yu Ming Zhu
0a61104280
web: use sha1 for token generation instead of md5(disabled by FIPS)
...
fixes : #2291
2020-06-24 14:42:00 +02:00
Tomas Kopecek
af311184fc
dropping six from hub/web
2020-06-18 15:41:35 +02:00
Tomas Kopecek
b84be525c0
www: repoinfo page
...
Fixes: https://pagure.io/koji/issue/2181
2020-05-25 10:39:34 +02:00
Ken Dreyer
72b7418658
kojiweb: update for mod_auth_gssapi configuration
...
Delete the mod_auth_kerb configuration settings from the sample
kojiweb.conf file. Add the mod_auth_gssapi settings instead.
2020-05-18 11:42:43 +02:00
Tomas Kopecek
0132313f92
replace logging.warn with warning
...
call is deprected in python 3.7
Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Tomas Kopecek
220eca4319
display merge mode for external repos
...
Fixes: https://pagure.io/koji/issue/2096
2020-04-01 12:58:41 +02:00
Tomas Kopecek
758f0a0311
don't break on invalid task
...
Fixes: https://pagure.io/koji/issue/2112
2020-03-30 15:03:34 +02:00
Adam Williamson
9b86c5081e
Don't use datetime timestamp() as it's not in Python 2
...
The `timestamp()` method for `datetime.datetime` instances was
only added in Python 3. It does not exist in Python 2. So we
can't safely use it here.
I believe this should do the right thing, taking advantage of a
couple of existing utility functions in koji.util.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-03-16 10:46:47 +01:00
Yuming Zhu
cf34706f04
use Exception instead of BaseException for bare expection
2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1
flake8: apply E501 with max-line-length=99
2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7
flake8: apply all rest E7 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
6ed30954b2
flake8: apply E71x rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
fa69c4904e
flake8: apply E70x rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
6dd77e0fa4
flake8: apply E502 rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b
flake8: apply E2 rules except E266
2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf
flake8: follow E265 rule
2020-03-03 21:35:08 +08:00
Tomas Kopecek
0a9712b28f
move needed functions
...
Related: https://pagure.io/koji/issue/1484
2020-02-18 13:38:04 +01:00
Tomas Kopecek
96d3cff5f2
remove usage of deprecated cgi.escape function
...
Fixes: https://pagure.io/koji/issue/1887
2020-02-13 14:44:50 +01:00
Tomas Kopecek
08baa31a8b
fix rebase
2020-02-10 15:46:18 +01:00
Tomas Kopecek
f434933370
Display params also for malformed tasks in webui
...
Previously web ui failed in displaying tasks with unexpected parameters,
display them now in raw variant with warning message.
Fixes: https://pagure.io/koji/issue/1484
2020-02-10 15:45:30 +01:00
Tomas Kopecek
79d96c707d
expect, that hub is returning GM time
...
Fixes: https://pagure.io/koji/issue/1915
2020-02-04 09:14:47 +01:00
Tomas Kopecek
a59eb9b5ca
display some taskinfo for deleted buildtags
...
Fixes: https://pagure.io/koji/issue/1866
2020-02-03 11:34:26 +01:00
Yu Ming Zhu
f602e7e6ef
web: fix typo - the param[0] is tag, not target
...
fixes : #1922
2020-01-23 16:30:31 +01:00
Yu Ming Zhu
5b83c682e4
remove unused imports
2019-12-12 11:00:58 +00:00
Yu Ming Zhu
b8653736dd
sort imports in www
2019-12-12 11:00:56 +00:00
Tomas Kopecek
a803f0a0f3
[web] human-friendly file sizes in taskinfo page
...
Fixes: https://pagure.io/koji/issue/1819
2019-12-12 13:23:26 +01:00
Tomas Kopecek
4ae799c93d
browsable api
...
Fixes: https://pagure.io/koji/issue/1813
2019-12-11 13:26:25 +01:00
Tomas Kopecek
9e1b76e475
fix closing table tag
...
Fixes: https://pagure.io/koji/issue/1838
2019-12-11 13:25:40 +01:00
Yuming Zhu
7a6ebc851f
improve test and clean targets in Makefiles
2019-11-27 15:42:30 +01:00
Tomas Kopecek
97ca6fb106
Show build link(s) on buildContainer task page
...
Fixes: https://pagure.io/koji/issue/1529
2019-11-25 14:42:11 +01:00
Tomas Kopecek
59d196c51e
cluster health info page
...
Fixes: https://pagure.io/koji/issue/1550
2019-11-14 09:58:10 +01:00
Yuming Zhu
b2b8d5f9cc
strict per item in config_files
2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377
extract read_config_files util for config parsing
2019-10-15 09:14:16 +02:00
Ken Dreyer
ae3fac1242
web: remove reference to PythonOption
...
With mod_python we could use Apache's PythonOption directive. That
directive does not exist with mod_wsgi and we have to use SetEnv
instead.
Remove the PythonOption directive and describe how to use SetEnv.
2019-10-14 10:05:08 +02:00
Yu Ming Zhu
2034695e88
add an option to set server realm for all clients
2019-10-10 16:37:56 +02:00
Brendan Reilly
63ffb48f9c
Made difference between Builds and Tags sections more clear
2019-10-08 09:45:48 +02:00
Tomas Kopecek
dfbe322222
deprecate sha1/md5_constructor from koji.util
...
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.
Final removal from lib is scheduled to 1.21.
Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Tomas Kopecek
f1d2ebc85c
move cg_id to build table
2019-07-16 10:11:55 -04:00
Tomas Kopecek
c38c024ac5
extended getBuild to return reservations
2019-07-16 10:11:55 -04:00