579 Commits

Author SHA1 Message Date
Christian
cb6e70693d
Update packages/core/admin/server/strategies/api-token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-04-19 16:46:46 +02:00
Christian Capeans
0acb4ab3aa Change event name 2023-04-19 16:44:00 +02:00
Christian Capeans
aac196bdfe Fix failing test 2023-04-19 14:13:45 +02:00
Christian Capeans
0740be570f Add didCompleteRequest event 2023-04-19 12:54:10 +02:00
Alexandre BODIN
feced1d72b
Move api tests to root of repo with same structure (#16242) 2023-04-05 10:32:20 +02:00
Ben Irvin
06fd9bdeb2
Merge pull request #16180 from strapi/enh/allow-mysql2 2023-03-29 11:10:44 +02:00
Ben Irvin
205e5f9d55 Merge branch 'main' into features/data-transfer 2023-03-27 10:45:13 +02:00
Ben Irvin
6444ce74a9 Merge branch 'main' into enh/allow-mysql2 2023-03-24 16:35:12 +01:00
Ben Irvin
41a793ed53 clean up after each test 2023-03-23 15:02:08 +01:00
Ben Irvin
c7db702b33 fix tests 2023-03-23 13:01:44 +01:00
Ben Irvin
ad0cdbd5fb fix tests 2023-03-22 13:59:21 +01:00
Alexandre BODIN
aaeb988a0b
Expand nx usage and migrate logger to ts (#15957) 2023-03-22 11:21:33 +01:00
Simone
6c2eae0754
Merge branch 'features/data-transfer' into data-transfer/error-salt-token-missing 2023-03-17 11:30:07 +01:00
Simone Taeggi
bbe64d6837 Merge branch 'main' into features/data-transfer 2023-03-17 11:28:23 +01:00
Simone
f7a3491cb5
Merge branch 'features/data-transfer' into data-transfer/error-salt-token-missing 2023-03-17 10:29:33 +01:00
Marc-Roig
28ebe15abe add published at attribute to be filterable and sortable 2023-03-16 17:18:29 +01:00
Convly
366eb8a0d0 Merge branch 'main' into features/data-transfer 2023-03-16 16:47:11 +01:00
Christian Capeans
d79c0490f9 Fix sorting problem in tests 2023-03-16 11:06:25 +01:00
Alexandre Bodin
9295b52bb7 Fix api tests 2023-03-15 20:55:25 +01:00
Alexandre Bodin
18fbe664d7 Fix tests 2023-03-15 19:08:49 +01:00
Christian Capeans
e1b78e05c4 Add small fix and adapt tests 2023-03-15 17:32:25 +01: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
Convly
d8614487de Handle ws connexion status code & fix token validation 2023-03-14 12:43:15 +01:00
Simone Taeggi
faa5820548 change ctx.badRequest to ctx.notImplemented 2023-03-09 17:36:19 +01:00
Simone Taeggi
26d9f6c8e0 add a specific error on the BE when the Token Salt token is missing
Co-authored-by: Christian <christiancp100@gmail.com>
2023-03-09 14:44:20 +01:00
Alexandre Bodin
29dadec292 Feedbacks 2023-03-09 02:43:16 +01:00
Christian Capeans
de6aa0baed Add authorization 2023-03-08 14:15:53 +01:00
Christian Capeans
674b13eb23 Merge branch 'features/data-transfer' of https://github.com/strapi/strapi into data-transfer/pull 2023-03-08 11:31:15 +01:00
Alexandre Bodin
6c36872dd2 Fix test 2023-03-06 22:17:56 +01:00
Alexandre Bodin
e0e2084422 Move RBAC into CE 2023-03-06 21:46:45 +01:00
Alexandre Bodin
e789cd81f3 Avoid local strapi conflicting with global 2023-03-03 17:17:02 +01:00
Christian Capeans
3093fa32f1 Refactor the push handler for the data transfer
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-03-03 17:16:24 +01:00
Christian Capeans
2892fa55fa Refactor controllers logic to handle pull transfer
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-03-03 09:49:46 +01:00
Alexandre Bodin
dee0e195c1 Fix invalid require using internal paths 2023-03-02 22:16:29 +01:00
Convly
b502f188b5 Fix unit test 2023-02-27 19:30:26 +01:00
Convly
9afb0ad86d Check token salt on hash 2023-02-27 19:10:04 +01:00
Convly
ae23359954 Emit a warning when the feature is enabled but salt is not set 2023-02-27 18:55:16 +01:00
Ben Irvin
13099b4c55 Send error status when token salt not set
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-27 17:56:23 +01:00
Convly
478127d7c7 Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-20 16:58:46 +01:00
Rémi de Juvigny
839d677c8f Remove the associated actions 2023-02-14 18:52:53 +01:00
Rémi de Juvigny
cbfc5876c7 Delete install and uninstall plugin endpoints 2023-02-14 16:04:16 +01:00
Convly
9e4436b15a Add a verify util to the transfer runner handler 2023-02-08 10:46:16 +01:00
Convly
32e50815a1 Fix unit test 2023-02-06 11:34:12 +01:00
Convly
635c8a708d Merge branch 'data-transfer/transfer-tokens' of github.com:strapi/strapi into data-transfer/transfer-tokens 2023-02-06 10:16:36 +01:00
Convly
47c5867688 Remove integer constraint from the API token validation 2023-02-06 10:13:17 +01:00
Jean-Sébastien Herbaux
ffb0b9497a
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:12:36 +01:00
Jean-Sébastien Herbaux
9085b98717
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:11:31 +01:00
Convly
44c13b9497 Fix jsdoc for TransferToken.permissions 2023-02-06 10:10:29 +01:00
Convly
d3ae89280d Fix API test typo 2023-02-06 10:09:26 +01:00
Convly
bec1dfd555 Remove integer constraint from the transfer token validation 2023-02-06 10:07:56 +01:00