Commit Graph

50 Commits

Author SHA1 Message Date
Benjamin Dauvergne 4524cb32e0 misc: python3 compatibility (#41302) 2020-04-06 14:06:40 +02:00
Benjamin Dauvergne 51585f6290 tests: remove warning on Element.getchildren() (#41302) 2020-04-06 14:06:40 +02:00
Benjamin Dauvergne 10dd95879c tests: fix deprecation warning 2017-10-18 16:33:47 +02:00
Benjamin Dauvergne 3ad3bb14d3 models: use kilobytes in size limits, use bigintegerfield for partner.size (fixes #19497)
Make test on partner size limits clearer by nost using JSON, and just sending
plain text documents of the needed sizes.
2017-10-18 16:32:15 +02:00
Benjamin Dauvergne a968380ae5 ensure concurrent PUT does not raise an IntegrityError (fixes #19384) 2017-10-11 18:23:13 +02:00
Benjamin Dauvergne 2a1cec8205 api_views: test if file exists before returning the StreamingHttpResponse 2017-09-27 17:26:59 +02:00
Benjamin Dauvergne 430a9d0fbc renvoyer key-not-found sur un GET d'une clé inconnue d'un pétale existant (fixes #17810) 2017-07-26 16:11:21 +02:00
Benjamin Dauvergne 558d2f7a5f enlarge CUT.uuid to accomodate encrypted pairwise subs (less thant 100 bytes usually) 2017-07-21 14:17:33 +02:00
Josue Kouka fc3b6e5ae1 add idp based cut control (#14976) 2017-07-21 10:53:43 +02:00
Josue Kouka cde0489217 api: add cut's petals purge (#17605) 2017-07-19 17:00:45 +02:00
Josue Kouka 577ae9e5d5 fix: RP client saving after proxy authentication (#17548) 2017-07-12 10:20:45 +02:00
Josue Kouka a47fa1b264 deleguate authentication to authentic (#16579) 2017-06-14 00:21:10 +02:00
Josue Kouka 481e058420 return 404 if cut uuid length over 32 (#16649) 2017-06-01 12:34:34 +02:00
Benjamin Dauvergne 7b242a4fc5 api: fix extraction of If-Match header in DELETE endpoint (fixes #15791) 2017-04-07 10:14:00 +02:00
Benjamin Dauvergne efe31c8e3b add french locale 2017-03-30 01:03:54 +02:00
Benjamin Dauvergne a3a56dbb0f never returns cut-not-found until we really check against authentic 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 6b88debc9c move implementation of limit checks and mail sending in models 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 43f74d45f5 do not load full request body into memory 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 74c9ac409b clean everything 2017-03-29 17:17:11 +02:00
Benjamin Dauvergne d11cbee413 filter keys by ACLs (fixes #15503) 2017-03-20 10:56:37 +01:00
Benjamin Dauvergne 00026cfd17 rename parameter ?filter= to ?prefix= (fixes #15510) 2017-03-20 10:35:59 +01:00
Josue Kouka 5d6345b89d misc: fix jenkins tests 2017-03-16 15:39:28 +01:00
Josue Kouka 4efbefe7bf return Content-Length in GET response (#15274) 2017-03-15 17:25:01 +01:00
Josue Kouka 2d324f1572 handle allowed methods in PetalPermission 2017-03-15 17:24:46 +01:00
Josue Kouka a74235367a misc: strip etags content 2017-03-14 18:34:50 +01:00
Josue Kouka 1d35d73c7f enforce size limitation control (#15350) 2017-03-14 16:50:49 +01:00
Josue Kouka 038c6e8203 improve caching handling (#14974) 2017-03-13 17:25:38 +01:00
Josue Kouka f6afe05058 return bad request error if content-type is missing 2017-03-13 14:16:22 +01:00
Josue Kouka c15f89b1f4 return 404 on HEAD if key not found (#15385) 2017-03-10 17:26:43 +01:00
Josue Kouka a38617a3e8 add head method (#15368) 2017-03-10 10:13:36 +01:00
Josue Kouka ff22efb1a4 log API requests and responses (#15366) 2017-03-09 20:14:06 +01:00
Josue Kouka 809a49b8ed handle if-none-match headers case (#15276) 2017-03-09 17:05:05 +01:00
Josue Kouka 82002c0a7a ensure ACL's key regex are valid (#15282) 2017-03-09 15:42:56 +01:00
Josue Kouka cc76ffe636 don't filter by content type when searching existing key (#15349) 2017-03-09 12:17:31 +01:00
Josue Kouka e3c8c32c06 return CUT Id associated keys (#15354) 2017-03-09 11:29:53 +01:00
Josue Kouka ec6cd06505 return empty dict in deletion response (#15351) 2017-03-09 10:34:52 +01:00
Josue Kouka a9a74315be prefix etag header with <sha1> (#15275) 2017-03-09 10:34:44 +01:00
Josue Kouka ab24d92e5b improve binary file handling (#15280, #15281) 2017-03-08 10:39:43 +01:00
Josue Kouka df1098b3e5 change key response error message (#15277) 2017-03-08 10:38:18 +01:00
Josue Kouka 1c08155f15 fix tests data hash comparison 2017-03-06 10:22:52 +01:00
Josue Kouka bd0d67d7a0 add size limitation handling 2017-03-03 16:28:41 +01:00
Josue Kouka 9144a02581 add listing of keys 2017-03-03 14:23:13 +01:00
Josue Kouka 5b42f2e6c2 dont' handle data as json 2017-03-02 11:56:03 +01:00
Josue Kouka 8f9346f05e add concurrent access management 2017-03-01 16:57:20 +01:00
Josue Kouka b9f2ef8d32 add simple API Features 2017-03-01 15:00:30 +01:00
Josue Kouka f9145c3552 check for resources in view 2017-02-28 10:57:29 +01:00
Josue Kouka ea9adffdbe use ACL custom manager to check access 2017-02-27 17:59:59 +01:00
Josue Kouka d81848a499 Improve ACL model 2017-02-27 11:58:49 +01:00
Josue Kouka 4487292906 add ACL tests 2017-02-20 19:11:56 +01:00
Josue Kouka fc4bf64949 add authentication and permissions classes 2017-02-20 11:25:31 +01:00