soupette
61a3740c06
Fix conflicts
...
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-11-23 14:43:07 +01:00
Jean-Sébastien Herbaux
4a33829f11
Sanitize /upload/search/:q route ( #8658 )
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-11-16 12:55:35 +01:00
Alexandre Bodin
08a603623b
Cleanup tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:46 +01:00
Alexandre Bodin
07e7cfc0bd
Make lint stricter and fix the errors
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Alexandre Bodin
fbf831355d
Remove usage of unsecure proxy for now
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-22 17:07:38 +02:00
Jean-Sébastien Herbaux
9871562359
Fix wrong permissions assigns (upload, users-permissions) ( #8320 )
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-13 18:51:09 +02:00
Jean-Sébastien Herbaux
38126d9a32
Fix "has same role as author" condition not working properly ( #8202 )
...
* Fix "has same role as author" condition not working properly
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Use creators constants
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add e2e test for default conditions, fix conditions on mongoose
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix tests in CE
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-08 19:50:39 +02:00
Alexandre Bodin
c98089ff65
Merge branch 'master' into releases/3.2
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-05 12:00:03 +02:00
Jean-Sébastien Herbaux
e55ea1d6b5
Hide creator fields from public api by default ( #8052 )
...
* Add model option to hide/show creators fields in public API response
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add content-types util, rework sanitize-entity's private handling
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Update search e2e tests, fix an issue on empty search for the core-api controller (find)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix GraphQL plugin (handle privates attributes on typeDefs + resolver builds)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix sanitizeEntity import
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Move doc update from beta to stable
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix e2e test
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix pr comments
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Remove creator's field from upload controller routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix typedef build for graphql association
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix pr (comments + several issues)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add tests for search behavior in content-manager
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Rename files variables to meaningful names (upload controllers)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix test with search id matching serialNumber
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
* Add toHasBeenCalledWith check for config.get (utils/content-types.test.js)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-01 17:47:08 +02:00
Pierre Noël
09ae61ffab
fix tests
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:40 +02:00
Pierre Noël
36892fe2a8
add webhooks for draftAndPublish + sanitize all webhooks info ( #7629 )
...
* add webhooks for draftAndPublish + sanitize all webhooks info
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:29 +02:00
François de Metz
49ce4649cc
Encode the URL before fetching it. ( #7934 )
...
Signed-off-by: François de Metz <francois@2metz.fr>
2020-09-18 10:05:34 +02:00
Pierre Noël
c8207b7809
upload path can be absolute
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-31 17:39:29 +02:00
Alexandre Bodin
e18c54b225
Fix upload api
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-23 14:21:45 +02:00
Alexandre Bodin
109e41ea1f
Fix e2e tests
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 13:53:56 +02:00
Convly
e63306b559
Rewrote users-permissions's controller to fit with rbac, fix various bugs in content-manager's controllers
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Convly
0e61698ef5
Fix upload w/ permissions bugs
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:43 +02:00
Convly
5f01d9ebe1
Add permissions on upload controller
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:42 +02:00
Convly
56d583e49e
Add basis for upload controllers permissions
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Convly
b5fb5f8509
Add permissions to the content-manager routes
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Alexandre Bodin
4edad86029
Add basic created_by updated_by
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:16 +02:00
Jørgensen
65cc815a18
Upload proxy - Using Header objects build-in entries function ( #6340 )
...
* Using Header objects build-in entries function
* Using const in iteration
2020-05-25 16:05:12 +02:00
Jørgensen
b23286a90f
Clarified upload proxy error messages
2020-05-25 10:09:19 +02:00
Alexandre Bodin
71d7ecab6c
Move proxy to controllers to protect it
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 15:34:05 +02:00
Alexandre Bodin
ceb113a865
Add count search on files
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-25 19:17:46 +01:00
Alexandre Bodin
cfdbf5423a
Add file search and create simple sqlite search
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-25 17:34:39 +01:00
Alexandre Bodin
a17770293d
Allow file info edit whitout re upload
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-24 12:21:51 +01:00
Alexandre Bodin
55bdc146b7
Remove video preview setting
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-13 15:41:15 +01:00
soupette
f99f83af02
Merge branch 'develop' of github.com:strapi/strapi into features/media-lib
2020-03-13 11:04:45 +01:00
Alexandre Bodin
eb76a07daf
Update media-lib features according to spec changes
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-12 14:25:50 +01:00
Alexandre Bodin
2b5c332e09
Clean up
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 22:11:56 +01:00
Alexandre Bodin
2d12f88394
Optimize file
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:43 +01:00
Alexandre Bodin
8d025b89f3
Init optimization func and clean up code
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:42 +01:00
Pierre Noël
b5ec9cb1c8
handle unexpected params from koa-router
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-06 19:16:51 +01:00
Alexandre Bodin
c722b0db00
Implement file replace
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 13:51:15 +01:00
Alexandre Bodin
7cd34b725a
wip
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:08 +01:00
Alexandre Bodin
b084cb1c65
Return type list and mimeTypes for filters
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:08 +01:00
Alexandre Bodin
196160dc1c
Add allowedType in ctb and init getMediaTypes api
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:07 +01:00
Alexandre Bodin
e5b319d81e
Update file creation process with fileInfo
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-03 16:33:48 +01:00
Alexandre Bodin
fd3511b511
Use strapi.plugins.upload.config for provider config
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:44 +01:00
Alexandre Bodin
7a8c865051
Merge branch 'develop' into features/media-lib
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 15:18:08 +01:00
Alexandre Bodin
68fbf77b30
Add new media lib settings. Remove db provider config
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-27 20:26:05 +01:00
HichamELBSI
e8b9017219
Merge branch 'features/single-types' into single-types/uid-ctm
2020-02-26 14:56:27 +01:00
Edaly Ahmed
129edd66ee
Signed-off-by: Edaly Ahmed <ahmed.edaly@oyez.fr>
...
adding getConfig service and casting params before updating database
2020-02-24 17:51:39 +01:00
Edaly Ahmed
67f4712fa7
Signed-off-by: Edaly Ahmed <ahmed.edaly@oyez.fr>
...
signing off
2020-02-13 12:38:55 +01:00
Alexandre Bodin
81b35ee412
Leave file url as realtive
2019-12-24 17:49:17 +01:00
Samuel Durkin
ffdde168c5
only add backend host as prefix if local server upload when getting singular upload
2019-10-04 19:06:01 +02:00
Alexandre Bodin
a22f2cefef
Remove x-forwarded-host.
...
- set security defaults for development mode that are standard
- refactor error messages to work without ctx.request.admin
- remove mask middleware and add a sanitization layer to the core-api to
hide private fileds
2019-09-06 14:33:24 +02:00
Alexandre Bodin
bb036333a2
Init upload plugin e2e tests
2019-08-06 10:46:53 +02:00
Alexandre Bodin
184490a07d
Upgrade koa-body version to latest
2019-08-01 07:50:06 +02:00