20 Commits

Author SHA1 Message Date
Ben Irvin
dd080bf280 fix missing sanitize 2023-08-11 17:08:03 +02:00
Ben Irvin
dce86bec5c validate does not sanitize 2023-08-11 13:13:44 +02:00
Ben Irvin
995473d959 add utils.validate and replace sanitize usage 2023-08-10 15:24:35 +02:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Pierre Noël
87056ebd87 allow the query params for GET folder 2022-06-14 09:32:45 +01:00
Pierre Noël
b7e82614f6 remove pagination on GET /folders 2022-05-20 10:25:58 +02:00
Pierre Noël
6d5ab53f2f add findOne route for folders 2022-05-19 10:52:32 +02:00
Pierre Noël
922ade1619 files uploaded through the content API go in a specific folder 2022-05-17 11:54:26 +02:00
Pierre Noël
8d5fe3b431 apply feedback 2022-05-13 16:10:18 +02:00
Pierre Noël
34372daf8b add bulk move route 2022-05-06 10:09:01 +02:00
Pierre Noël
c4ce0b56dc add update folder route 2022-05-05 14:50:56 +02:00
Pierre Noël
d1c3caf85c add bulk-delete route 2022-04-29 15:56:19 +02:00
Pierre Noël
de2a03268a change tree to folder-structure + fix test 2022-04-25 14:37:59 +02:00
Pierre Noël
ecbf419c3c add tree route 2022-04-25 14:37:58 +02:00
Pierre Noël
041f2f6eb3 apply feedback 2022-04-12 16:32:05 +02:00
Pierre Noël
cfa968c537 sanitize files for the content-api 2022-04-12 16:07:54 +02:00
Pierre Noël
d0bf7310b3 replace path by location + add location to files 2022-04-12 16:07:54 +02:00
Pierre Noël
a1c441e8bf remove path for files + add base for delete folders 2022-04-12 16:07:53 +02:00
Pierre Noël
a44e2cd25e add ability to set and change file folder location 2022-04-12 16:07:53 +02:00
Pierre Noël
94308aa2bc restructure upload controllers + add create and get folders 2022-04-12 16:07:51 +02:00