10c79bcafe
[TOOLS][TESTS] Add coverage ignore tag to autogenerated codeHugo Sales2021-05-05 15:56:03 +00:00
de0c35d5a6
[TOOLS][TESTS] Add a data fixture with example notes, for testingHugo Sales2021-05-05 13:37:43 +00:00
fbe0f36a53
[TESTS] Expand test coverage for App\Util\Forms\ArrayTransformer, App\Util\Notification and App\Twig\RuntimeHugo Sales2021-05-05 13:37:10 +00:00
6591d78a9c
[TWIG] Remove unused Twig function 'get_note_other_content'Hugo Sales2021-05-05 13:35:02 +00:00
f0c6aa761b
[TESTS] Add ignored files and folders to configHugo Sales2021-05-05 13:34:32 +00:00
c84fcc608f
[TESTS] Raise App\Util\TemporaryFile test coverage to 100%Hugo Sales2021-05-05 12:45:18 +00:00
ffa3774c46
[TOOLS][TESTS] Make tests run as www-dataHugo Sales2021-05-05 12:44:34 +00:00
fc9b934bbc
[UTIL] Fix App\Util\TemporaryFile, adding default options and preventing warning on not enough permissionHugo Sales2021-05-05 12:44:07 +00:00
01a659e5b3
[TESTS] Raise test coverage for NicknameTest to 100%Hugo Sales2021-05-05 12:21:37 +00:00
31b6211bd0
[TOOLS][TESTS] Add data fixtures, which populate the database with users used for testingHugo Sales2021-05-05 12:21:05 +00:00
ec1081ed43
[UTIL] Rename and rewrite isTaken to checkTakenHugo Sales2021-05-05 12:20:14 +00:00
bd249b508b
[ENTITY] Add 'normalized_nickname' to GSActor, the result of Nickname::normalize, so we can make sure we don't have very similar nicknames duplicatedHugo Sales2021-05-05 12:19:10 +00:00
f2727f9327
[DEPENDENCIES] Add doctrine/doctrine-fixtures-bundle, which allows populating the database in the testing environmentHugo Sales2021-05-05 12:17:16 +00:00
d2020eb7d8
[TOOLS][TESTS] Adjust configuration for testing environmentHugo Sales2021-05-05 12:15:05 +00:00
a49ee453ab
[TESTS] Raise App\Util\HTML test coverage to 100%Hugo Sales2021-05-02 21:02:43 +00:00
fbea08ca9b
[TESTS] Raise App\Util\Bitmap test coverage to 100%Hugo Sales2021-05-02 20:47:15 +00:00
abda73b8e3
[TESTS] Raise App\Util\Common test coverage to 100%Hugo Sales2021-05-02 20:42:25 +00:00
3fab198c04
[ENTITY] Add uniqueness constraint to Attachment::file_hashHugo Sales2021-05-02 15:48:06 +00:00
4f936108a1
[ATTACHMENTS] Don't store an attachment if it's a dupplicate, reuse itHugo Sales2021-05-02 15:46:12 +00:00
2b83a4b627
[UTILS][TemporaryFile] Change way TemporaryFile takes arguments and it's internal implementationHugo Sales2021-05-02 15:02:26 +00:00
3b39046a38
[UTIL] Fix bugs found in App\Util\Formatting by testsHugo Sales2021-05-02 14:57:47 +00:00
15a8f8ab7f
[TESTS] Add tests increasing coverage of App\Util\Formatting to 100%Hugo Sales2021-05-02 14:56:41 +00:00
5d326bd18e
[TESTS] Move testing container's DB and Redis to different ports, so it can be used at the same time as the regular containersHugo Sales2021-05-02 14:49:34 +00:00
ee97cc5b00
[TESTS] Add test container with Xdebug and allow for generation of coverage reports with 'make test'Hugo Sales2021-05-02 12:39:32 +00:00
091f4b5194
[ATTACHMENTS] Do not create thumbnails for attachments with mimetype different from 'image|video'Diogo Peralta Cordeiro2021-05-02 00:50:16 +01:00
4fcccb1d1c
[CORE][ImageEncoder] Add width and height back in attachment entity and allow for differently sized thumbsDiogo Peralta Cordeiro2021-05-01 22:48:44 +01:00
06b236374d
[CSS][Network] Improve attachment representation Part of why we have thumbnails with a specific size is so that they are in the proper theme sizeDiogo Peralta Cordeiro2021-04-30 23:47:43 +01:00
5067bcd074
[ImageEncoder][FileQuota] Move quota enforcement to it's own plugin, so it can be easily shared and disabledHugo Sales2021-04-30 13:14:16 +00:00
29a215534d
[SECURITY] We can't really show a stream for this, was a nice concept, but not properly doable without requiring JSDiogo Peralta Cordeiro2021-04-29 23:47:42 +01:00
d11615ded6
[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPathHugo Sales2021-04-29 20:42:26 +00:00
aad4bddedd
[ImageEncoder] Implement attachment validation for images. This limits the maximum dimensions of the file, enforces a per file, per user and per user-month size quota and fixes the title if it's a filename, by replacing the extension to the new oneHugo Sales2021-04-29 20:31:24 +00:00
7509913fcf
[ENTITY] Add field size to attachments, used for quota calculationsHugo Sales2021-04-29 20:29:21 +00:00
29457ef50d
[UTIL] Add option for setting a file suffix on TemporaryFile constructor and add missing TemporaryFileExceptionHugo Sales2021-04-29 20:27:41 +00:00
a165e533bb
[CONFIG] Add attachments/max_{width,height} config option, which is used as maximum dimensions when validating attachmentsHugo Sales2021-04-29 20:26:40 +00:00
8ad8546aab
[DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functionsHugo Sales2021-04-29 20:25:07 +00:00
aea8639d44
[ATTACHMENTS] Restrict thumbnail generation to allowed sizes. Defaults to only configured sizes, but can be extended with the event 'GetAllowedThumbnailSizes'. The intention is to prevent DoS attacks, since handling a thumbnail request is a relatively slow processHugo Sales2021-04-28 21:53:02 +00:00
4f6f1941da
[UI] Fix 'hide_attachments is not defined' errorHugo Sales2021-04-28 21:50:55 +00:00
436528172c
[ATTACHMENTS] Add controller and templates for the attachment show page, which shows extra info about an attachment, such as related notes and tagsHugo Sales2021-04-28 21:25:35 +00:00
be91fb754d
[CORE] Typo in GSFile and slight Twig weirdness in base templateHugo Sales2021-04-28 20:16:59 +00:00
b1e514832b
[Embed][ENTITY] Fix embed route and use attachment_view rather than _show. Rename Entity::have to Entity::has, because grammarHugo Sales2021-04-28 20:15:43 +00:00
30107de079
[Embed] Fix plugin. Only attempt to show an image, if we have oneHugo Sales2021-04-28 15:03:17 +00:00
2adb3c3521
[ATTACHMENTS] Add event 'AttachmentFileInfo' to allow a plugin to override the file displayedHugo Sales2021-04-28 15:01:40 +00:00
708a910870
[UTIL] Fix remove affix utilities, so they only try to remove an affix if the string starts/ends with itHugo Sales2021-04-28 15:00:04 +00:00
8988d89192
[CONFIG] Add attachment related parameters to default configHugo Sales2021-04-28 14:59:04 +00:00