558 Commits

Author SHA1 Message Date
Convly
5b48053946 v4.0.6 2022-01-28 15:08:27 +01:00
Convly
f183ea417b Code performance 2022-01-26 15:45:51 +01:00
Convly
4c41889266 Merge branch 'master' of github.com:strapi/strapi into sanitize-filters 2022-01-24 15:43:51 +01:00
Convly
9fbe72d58a Don't mutate the original filters object 2022-01-24 15:43:38 +01:00
Alexandre BODIN
45020eee06 v4.0.5 2022-01-19 18:44:22 +01:00
Alexandre BODIN
1489a26bcb
Merge pull request #12080 from strapi/feature/policyError
Add PolicyError error class for use in policies
2022-01-19 10:38:00 +01:00
Convly
3a732a1d01 Fix tests 2022-01-12 12:10:27 +01:00
Convly
76b5c09444 Merge branch 'master' of github.com:strapi/strapi into sanitize-filters 2022-01-12 11:38:04 +01:00
Alexandre Bodin
d81919ac22 v4.0.4 2022-01-10 09:05:07 -08:00
Convly
2670d37ddc Fix tests & handle scalars shortcuts 2022-01-10 12:35:08 +01:00
Convly
04ec37e36e Merge branch 'master' of github.com:strapi/strapi into sanitize-filters 2022-01-10 10:59:17 +01:00
Convly
81fff98c31 Remove dynamic zone filters 2022-01-06 16:35:44 +01:00
Convly
3eafe1c6e1 Enhance filters sanitize 2022-01-06 16:19:27 +01:00
Alexandre Bodin
48893ae3fc v4.0.3 2022-01-05 16:50:20 +01:00
derrickmehaffy
4dbb64e8a2 change default policies error
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2022-01-03 06:25:18 -07:00
derrickmehaffy
9fd85b9bfd Add PolicyError error type for use in policies
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2022-01-03 06:16:34 -07:00
soupette
61fe669fb6 Specify minimum node version to be 12.22.0
Signed-off-by: soupette <cyril@strapi.io>
2022-01-03 11:55:52 +01:00
Alexandre Bodin
fd656a4769 v4.0.2 2021-12-22 16:04:10 +01:00
Alexandre Bodin
e2cd01e8c6 v4.0.1 2021-12-22 10:43:38 +01:00
Dieter Stinglhamber
664c18b17e sanitize password from filters 2021-12-15 11:16:12 +01:00
Alexandre BODIN
8ae6fd5ae7
Merge branch 'master' into chore/test-config 2021-12-14 15:56:27 +01:00
vincentbpro
eab466bb65 Merge branch 'master' into v4/fix-fetch-all-entries 2021-12-02 16:04:49 +01:00
Fabien del Carmen
e1ff4b052c
Merge branch 'master' into chore/test-config 2021-12-01 11:20:39 +01:00
Alexandre Bodin
57ec94a4ce Remove snyk files. We switched to their github integration instead 2021-11-30 14:22:48 +01:00
fdel-car
3864399eb8 Merge branch 'master' into chore/test-config 2021-11-30 12:36:11 +01:00
Alexandre Bodin
b181702f02 v4.0.0 2021-11-29 20:16:44 +01:00
DMehaffy
7e874e00a0 Update all documentation links to new docs url (#11424)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-11-29 18:13:52 +01:00
Dieter Stinglhamber
cb7f44ea41 make author and maintainers field consistent accross packages 2021-11-29 16:23:55 +01:00
Alexandre Bodin
c288dcb902 Cleanup and normalize package.json files 2021-11-29 15:13:33 +01:00
vincentbpro
a97c831cc0 tests: added tests for when maxLimit not configured(graphql) 2021-11-24 10:13:02 +01:00
vincentbpro
cc4ffd1f57 Merge branch 'releases/v4' into v4/fix-fetch-all-entries 2021-11-23 16:22:48 +01:00
Alexandre Bodin
3bc73a28c0 Add createdAt and updatedAt back into the CM layouts and metas 2021-11-15 19:26:56 +01:00
Convly
25e62db93a use 'sanitizers' instead of 'utils' 2021-11-10 17:08:54 +01:00
vincentbpro
a154b73e9c Merge branch 'releases/v4' of github.com:strapi/strapi into v4/fix-fetch-all-entries 2021-11-09 11:15:10 +01:00
vincentbpro
d6f8a6debc test: added tests for pagination util 2021-11-09 11:09:55 +01:00
vincentbpro
f42485b839 fix: removed unlimied query support for pagedPagination (pageSize=-1) 2021-11-09 08:48:42 +01:00
vincentbpro
d5eb046285 fix: avoid sending -1 limit to db layer 2021-11-08 17:32:40 +01:00
vincentbpro
73e5b672fd fix: negative limit without maxLimit (graphql) 2021-11-08 17:17:56 +01:00
Convly
16ab717fb2 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/new-sanitize-fixes 2021-11-08 15:53:58 +01:00
Convly
8d4f8ddd57 Simplify & abstract common sanitize logic 2021-11-08 15:52:42 +01:00
vincentbpro
afe446843e fix: negative limit and pageSize handling (graphql) 2021-11-08 12:30:34 +01:00
Alexandre Bodin
42b87679bb Refactor policies to have a consistent factory API like middlewares 2021-11-08 09:33:36 +01:00
Pierre Noël
c6a5a047d6 Merge branch 'releases/v4' into v4/error-handling 2021-11-05 10:40:11 +01:00
Convly
7c560e3b94 Move the eventHub sanitize logic to the eventHub declaration 2021-11-05 10:36:10 +01:00
Pierre Noël
db1cb3040c refactor error-handling PR 2021-11-05 10:13:43 +01:00
Convly
5de071a92e Fix typo 2021-11-04 16:51:40 +01:00
Convly
d6516116b2 Move pipeAsync to @strapi/utils 2021-11-04 16:43:27 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads (#11411)
* Rework sanitizeEntity, first iteration

* remove console.log

* Remove useless comments

* Fix e2e tests

* Fix up user e2e test

* Fix remove-restricted-relations visitor

* Handle grapqhql resolver, prevent access to restricted relations

* Handle polymorphic relation in the related visitor

* Remove morph attribute if empty

* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00
Pierre Noël
cb098ec280 clean yup validations 2021-11-04 11:42:45 +01:00
Pierre Noël
ebb124de4b change graphql error handling with originalError 2021-11-04 11:42:44 +01:00