321 Commits

Author SHA1 Message Date
Giulio Montagner
f8af92b375
fix: add sizeInBytes for upload providers (#19593) 2024-02-23 11:37:26 +01:00
Alexandre BODIN
ae792fb42c
Release 4.15.1 (#18646)
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Marc Roig <marc12info@gmail.com>
2023-11-03 08:37:53 +01:00
Thanos
524af8055c
fix(upload): media library image signedUrl cache busting issue (#18541)
* media library image signedUrl cache busting issue references #18443

* date query param typo

* add asset isUrlSigned property, used as asset url cache busting condition

* removed cacheBustUrl function, added inline comment to describe functionality
2023-10-31 15:28:52 +00:00
Ben Irvin
1a56693a91 cleanup 2023-08-17 17:24:11 +02:00
Ben Irvin
dd080bf280 fix missing sanitize 2023-08-11 17:08:03 +02:00
Ben Irvin
c1f0f87949 fix typo 2023-08-11 17:04:11 +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
Marc-Roig
007c289877
fix: typo 2023-07-18 16:48:50 +02:00
Marc-Roig
dc09aa2f8f
fix: move cron utils to upload 2023-07-18 16:22:20 +02:00
Jamie Howard
1a8b6e78d8 feature(ee): WIP weekly cron job 2023-07-13 15:03:23 +01:00
Jamie Howard
c53b7a7ae4 fix: simplify emitEvent logic 2023-06-01 15:20:13 +01:00
Jamie Howard
9ecb8fe34c test: fix tests for addAllowedEvent 2023-05-31 14:28:32 +01:00
Jamie Howard
d77e42b859 refactor(webhooks): populate allowed events from relevant modules 2023-05-30 16:13:10 +01:00
Jamie Howard
b919da9c26 Merge remote-tracking branch 'origin/main' into feature/set-webhook-events 2023-05-30 10:16:36 +01:00
Marc
4c13de458e
Merge pull request #16518 from strapi/feature/private-s3-url-signing-content-api 2023-05-29 14:57:06 +02:00
Jamie Howard
db767bded1 test(upload): bootstrap 2023-05-25 13:30:24 +01:00
Jamie Howard
14ff035647 feature: replace emitEvent calls with new webhook store 2023-05-25 12:37:38 +01:00
Jamie Howard
933a2e3dff feature(upload): register webhook events 2023-05-24 16:46:59 +01:00
Marc-Roig
087ff3765b
chore: create util to check if folder is the same as another one or a child one 2023-05-22 10:06:37 +02:00
Marc-Roig
4870920918
fix: improve path match on check if folder is movable 2023-05-17 18:08:02 +02:00
Marc-Roig
008d82f8f7
fix: filter folder by eq and startswith 2023-05-17 17:31:38 +02:00
Marc-Roig
06f9367dc3
feat: sign load entities 2023-05-08 15:41:42 +02:00
Marc-Roig
00ec2c98a8
fix: unit tests 2023-05-02 10:51:27 +02:00
Marc-Roig
7b9940acf4
Merge branch 'feature/entity-service-wrapOutput' into feature/private-s3-url-signing-content-api 2023-05-02 10:50:59 +02:00
Marc-Roig
7ea52e2b09
chore: change config variable name 2023-04-27 11:53:49 +02:00
Marc-Roig
4cf7d6284f fix: call parent wrapResult 2023-04-27 10:36:36 +02:00
Marc-Roig
b776c76ada fix: pass uid in wrapResult 2023-04-26 20:30:41 +02:00
Marc-Roig
1e6f407cda feat: move extensions to bootsrap instead of register 2023-04-26 13:54:53 +02:00
Marc-Roig
1e545ae1e9 feat: sign media util 2023-04-26 13:54:18 +02:00
Marc-Roig
c921f6d05c feat: create folders for entity service decorator 2023-04-26 13:53:34 +02:00
Marc-Roig
cbb49465bd feat: move sign-media test to utils 2023-04-26 13:52:45 +02:00
Mark Kaylor
02a6ea5cf5 Add customizer function 2023-04-24 15:25:17 +02:00
Mark Kaylor
ff971821fb Test overrides and fix upload schema 2023-04-24 15:25:17 +02:00
Marc-Roig
f8677df6ca Merge branch 'main' into feature/private-s3-bucket 2023-03-23 09:30:04 +01:00
Kevin Antonio Rateni Iatauro
edc2bdcecd
Decouple image resizing and optimization (#14029)
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 11:00:21 +01:00
Marc-Roig
1e1b62ef23 sign file urls when uploading files 2023-03-21 15:27:32 +01:00
Marc-Roig
456bdcba33 Merge branch 'main' into feature/private-s3-bucket 2023-03-21 14:59:26 +01:00
Marc
9810977479
Update index.js 2023-03-20 14:27:27 +01:00
Marc-Roig
516500dd07 do not wait for send upload plugin metrics 2023-03-20 11:30:52 +01:00
Marc-Roig
65ff3ca49a rename events 2023-03-20 11:30:05 +01:00
Marc-Roig
d4ab28d9c1 do not await telemetry 2023-03-20 09:58:25 +01:00
Marc-Roig
8bd5eb9745 update names of event properties 2023-03-17 15:00:01 +01:00
Marc-Roig
40650c4088 fix test 2023-03-16 16:55:14 +01:00
Marc-Roig
19c774fa57 change metric file to be index..js 2023-03-16 16:55:08 +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
Marc-Roig
a95c6a8c5e send telemetry about private providers 2023-03-15 14:37:31 +01:00
Marc-Roig
312be981e0 change order of execution on mapEntity 2023-02-28 14:20:19 +01:00
Marc-Roig
a392a15b65 call entity manager mapEntity 2023-02-24 09:17:39 +01:00
Jamie Howard
2797c1e0ca Merge remote-tracking branch 'origin/feature/private-s3-bucket' into private-s3-bucket/upload-extension-unit-tests 2023-02-23 11:08:10 +00:00