-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sun, 03 Jan 2021 16:48:30 +0100 Source: mini-buildd Architecture: source Version: 1.9.8 Distribution: experimental Urgency: medium Maintainer: Stephan Sürken <absurd@debian.org> Changed-By: Stephan Sürken <absurd@debian.org> Changes: mini-buildd (1.9.8) experimental; urgency=medium . API polish release. Summary: * Implement RFC 7807 for error handling, consequently obsoleting HTTP custom headers previously used. * Introduce "public" exception classes -- detailed error messages are now available (via WEB or API response) only when explicitly raised. Previously, any exception message would go "public", which is a possible security risk (and mostly not helpful). * API is now truly json only. "output" parameter is completely removed, HTML view is now accessible via 'mini_buildd/api_view/'. * API calls per WEB are now (per default) AJAX calls (i.e., results are displayed on the same page w/o reload). . * [4c22494] views.py, __init__.py: Move HTTPException to package init. * [ca52290] __init__.py (HTTPException.rfc7807): Add rfc7807 (dict) generator. * [15ba077] __init__.py, views.py: Make explicit HTTP exception classes (bad request, unauthorized, m. not allowed). * [e2a756b] views.py: Update middleware exception handling to new HTTPException classes. * [f94563f] __init__.py (Rfc7807): Extra class (so code can be used elsewhere later). * [45185e6] API: Switch to RFC 7807 error handling; obsoletes all custom HTTP header code. * [e2582aa] config.py: cfield_exception also obsoleted (by previous 'json+problem update"). * [2d8b74c] __init__.py: Better naming: HTTPException -> HTTPError. * [02b6045] mini_buildd.js: Initial generic API call support. * [ba6491e] views.py: debug: Log exception for API errors. * [de1e116] mbd_api.html, css: Just use input "disable" attr to mark API call as unavailable. * [04e25be] views.py: Move 'error.html' template top-level (it's not for app mini_buildd alone). * [a306432] views.py: django exceptions: Fix 404 function syntax && don't make any django exception messages 'public'. * [283a11a] Move all API templates to subdir api/. * [70d5ff2] Use 'mini_buildd/api_view' for any html-ized api output, "mini_buildd/api" for json only. Obsoletes extra parameter 'output'. * [d2c1ab2] mini_buildd.js, base.html: Add automated mbd-[no]script CSS classes. * [4d4f3ad] mini_buildd.js: Update js code for API calls. * [ce86e85] mbd_api.html: tag mbd_api: Initial support to call/show result directly via js. * [3acaeea] mbd_api.html: Fix 'double button display' via mbd-[no]-script class. * [5bb347a] api.py: Renmame cls.plain(r) -> cls.get_plain(r), add self.plain(): obsoleting extra tag mbd_api_plain. * [5d7f7b0] mbd_api.html: Do "confirm" via required checkbox. * [8b2d7d8] mbd_api.html: Add macro (include) for submit; add non-script submit in js result. * [fbf2beb] base.html, mini_buildd.js: Rather use "initial" (not "inherit") as "active" value. * [e460b9e] mbd_api.html: Use 'mbd_plain' tag to show plain results. * [ccc7056] templatetags/mini_buildd.py: mbd_img, mbd_api: Remove "target" support. * [d154edf] mini_buildd.js: API call: Improve error handling. * [6ea8542] base.html: Fix: Remove redundant explicit next= in user menu (already in djanfo conf). * [83100d5] *.py: Bulk-update all 'Excpetion's meant for user consumption into 'mini_buildd.HTTPError's. * [42712e6] models/*.py: Bulk-update use of django exceptions to mini_buildd exceptions. * [7c343bc] mbd_api_arg.html: Cosmetic: Put 'textarea' (non-input) down in if-else tree. * [df7c8d6] mbd_api_arg.html: Remove all form elements' hardcoded "size"-like settings. * [3fd60e2] mbd_api_arg.html: Fix: Use HTML 5 "number" type for IntArgument. * [40d1000] mini_buildd.js: API: Support __plain__ results. * [03c63de] api.py (MultiSelectArgument): Fix: Properly raw_value from default. * [859681f] mbd_api_arg.html: Rm unneeded element "id"s. * [c302cd2] mbd_api_arg.html: Just leave out 'value=' if not set && reorder attrs. * [af77e87] mbd_api_arg.html: Make all inputs w/o value 'required'. * [c9623ae] mbd_api.html: Skip next. * [fedc9ee] mini_buildd.css: Add another bg level for plain. * [085cc84] mbd_api.html: Make result details open by default. * [7dcc881] api_view/index.html: Make API overview more HTMLy, add TOC. * [e727d3b] mini_buildd.css|js, html: API: Display overlay for (js) API results (i.e., don't break layout). * [48d0f8c] api.py (MultiSelectArgument): Make separator class attr, and fix default setting for any argument class. * [a114e6d] mbd_api_arg.html: Fix: Set "required" only if 'value is None' (not if value evaluates to False). * [6cc0006] mini_buildd.py (mbd_api): Rather use value, nor raw_value. * [863f2cc] api.py: logcat: Decrease default lines 500->100. Checksums-Sha1: 2d3a4ef896d7090d346e61e76fa0077940265125 2254 mini-buildd_1.9.8.dsc 4ae8badfa60ae5a1b7b71d3179919084bc0eebbd 554656 mini-buildd_1.9.8.tar.xz 5e61992e5f402927c73accd9134bcb1fe57e567e 12202 mini-buildd_1.9.8_source.buildinfo Checksums-Sha256: c6f2060922efca30e383be37547e7dd582fc6eb65cc03a69d6ef763f7fb8470e 2254 mini-buildd_1.9.8.dsc f6c3a9e0ea28d585799dbf83ef1438d3ea7674e7b46dae69255bc50864d7d005 554656 mini-buildd_1.9.8.tar.xz 02425c4b2703a61c3f3329ef739e35c5c07e1015eb0a0aa2db7ab2376823729c 12202 mini-buildd_1.9.8_source.buildinfo Files: 437f0d6c0fadd7830cf269b14ddff881 2254 devel optional mini-buildd_1.9.8.dsc 0936332ca694f91458839af347148dc7 554656 devel optional mini-buildd_1.9.8.tar.xz c759ba45eba2be505be96d2c128ce693 12202 devel optional mini-buildd_1.9.8_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEVOttCJ+jfBmmRZCzBm3oAX4rYdkFAl/x7ckSHGFic3VyZEBk ZWJpYW4ub3JnAAoJEAZt6AF+K2HZ4LYP/3wUFicIXVXmyvJj9X74QILnnc+3JfCM D4bXz8L+70PNMEfBK5cCtPN8aA/sJELtaoGMMXjIb0+uKOwfo2RI6g7DpWCEGeaA 9yxPUzyLQAOfJ7ki5KoT9tMLKe30Xn6vN6SLB5vAEFSK8mdvh8zzvgtuv3tAcjfo G45zcHMYVaLxpQ6yX2RwdmElr5LX0OVeAwLM5mprXzb+CPPBsfIRJ7BQH631cHtG k3Md/ATz+p6NeaGHYDrQbuD/VYnkAaDWd9Zi2Dt8yntuEEAYB1VuGr9yWDBm4bC/ gyQq6UrAG9/fpmw78Wr5HPPEPc/RZhOKjISq16bVR8bXNXyfVHjXqp/prU4a+LPj SHji67UH5OGo2TnsTfeCl0/uHPXH0akSCcdXQhO6PlbH+dLXG9IyegkH2DHKE6W1 W5Eb5LdjcXAXhjBPSPZM429wVwMYg7GygOLCN/JXQK6zV7CycLMw9dlyeRmt3lrL tCemZ8/YiOKBjv8LgDTzoJ8BEAsDh6dNmqaweZj1rwYQPC2GR9XYFhcK2AC7Z1dt O+5S7lqhQx/1+elvTXveKzyV06on1x3aO/v0UXhW7On9vkVp1J7+NwitzgkQbSmu TatCI4DkF77sZgD57AJi6XiLIz43cpi58SfV73Y8wmu7NoXr9aHZOdHqCg4b48VN n9l3NVgVBnjM =Xfzo -----END PGP SIGNATURE-----