summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-01-05[ci skip] Merge pull request #5980 from devnetkc/docs-5761Andrey Andreev1-0/+1
chore: Add to main readme contribute guide link
2021-01-05[ci skip] Add TLS support for Session library Redis connection strings ↵Andrey Andreev2-2/+2
(related: issue #5982, PR #5983)
2021-01-05[ci skip] Close #6005: Fix typos in email helper docsAndrey Andreev1-3/+3
2020-10-07Update NEWS3.5.0Florian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Update API version to 2.2.0Florian Pritz4-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Only consider public methods as API endpointsFlorian Pritz1-1/+1
We are not only interested in checking if a method exists here, but really also if it can be called (e.g. if it is public). Private methods should not be considered as potential API endpoints. Before this, private methods could be called, leading to a 500 error due to a call to the private method. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Add `minimum-id-length` post parameterSimon Schuster6-21/+114
This parameter controls the generated id for files (file/upload) and multipastes (file/create_multipaste). The post parameter has to be a positive integer value >= 2. Changes by Florian Pritz: - minor style and typo fixes - NEWS entry - check expected error reply content in tests Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07docker: Fix python binarySimon Schuster1-0/+1
Filebin unconditionally expects a 'python' command to be in path that is compatible with the installed pygments library. For alpine, this means a python3 binary. Therefore, we symlink /usr/bin/python3 to /usr/bin/python.
2020-09-20docker: Always regenerated config files on container startupFlorian Pritz2-15/+11
We should really regenerate the configs, run migrations and hooks during each container startup. Otherwise you really can't update anything at all. The only thing that we do not do multiple times is adding the admin user, but the add_user method already checks for that and simply displayed an error. Hiding that error is probably not worth the effort so we just add a quick explanatory comment before the potential error. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-09-20docker: Fix database error during initial migrationFlorian Pritz1-1/+1
The following error was shown during initial startup of the container and the database was obviously not initialized because of this. I'm not sure why it happens, but setting the database name in the config (in addition to the name in the PDO connection string) fixes the problem. > Database error: A Database Error Occurred > > Error Number: 42000/1102 > Incorrect database name '' > SHOW TABLES FROM `` > Filename: libraries/Migration.php > Line Number: 167 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-09-18updated Dockerfile and README.mdAndreas Steding2-3/+3
2020-08-22:pencil2: ops, forgot to remove first idea.Ryan Valizan1-6/+0
2020-08-22:pencil: Add to main readme contribute guide linkRyan Valizan1-0/+7
Issue #5761 asked for an imporovment to this document. This is very simple tweak. However I think it accomplishes the goal for everyone Without any bloating of the main readme.
2020-07-09Merge branch '3.1-stable' into developAndrey Andreev5-17/+20
2020-07-09[ci skip] Correct fix for #5906Andrey Andreev1-1/+1
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev158-171/+173
Fix user guide url
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev146-156/+156
Fix user guide url
2020-07-09[ci skip] Merge pull request #5922 from robsonpiere/developAndrey Andreev1-1/+2
Add UptimeRobot user agent
2020-07-09[ci skip] Merge pull request #5922 from robsonpiere/developAndrey Andreev1-1/+2
Add UptimeRobot user agent
2020-07-09Merge pull request #5946 from sapics/travis/php74Andrey Andreev2-25/+74
Pass the travis php7.4 test
2020-07-09Merge pull request #5946 from sapics/travis/php74Andrey Andreev2-24/+75
Pass the travis php7.4 test
2020-06-24Fix user guide urlsapics146-156/+156
Replace from https://codeigniter.com/user_guide/* to https://codeigniter.com/userguide3/*
2020-06-12Update NEWS3.4.5Florian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-06-12thumbnail-view.js: Detect automatic image rotation in recent browsersFlorian Pritz2-1/+19
The default value has been changed to `from-image` and at least with Firefox 76 and Chromium 83 this leads to double rotated images. Disabling the automatic rotation with `image-orientation: none` in CSS leads to incorrectly scaled images, (likely, but unverified) because the width/height are returned incorrectly/rotated in jquery/javascript. Whatever it may be, the easier fix is to just check for the new default value and if the browser handles orientation automatically, we disable our own code. https://github.com/w3c/csswg-drafts/issues/3799 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-05-18style: add empty line.ytetsuro1-0/+2
2020-04-19Update NEWS3.4.4Florian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Update composer.lockFlorian Pritz1-63/+76
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Update composer dependency versionsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Reclassify various exceptions as InsufficientPermissionsExceptionFlorian Pritz3-3/+3
That way they get the correct HTTP status code and they also get ignored by the logging code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Reclassify various exceptions as UserInputExceptionFlorian Pritz5-15/+16
These are errors that a user can correct themselves so we should classify them accordingly. That way they get the correct HTTP status code and they also get ignored by the logging code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Log HTTP 500 PublicApiException to error logFlorian Pritz2-0/+4
These return a 500 HTTP error code and when using a CLI download tool, you might not see the returned HTML error message. To make debugging easier we also log them to the error log. Some extending exceptions also return different error codes (e.g. UserInputException) so we filter these by only logging if the return code is 500. If a user/admin sees that code they likely expect a log entry. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-13Add composer cache in Travissapics1-0/+4
2020-04-13Remove allow_failures of php7.4 in Travissapics1-1/+0
2020-04-13Fix error in Travis php7.4 testsapics1-1/+6
2020-04-13Remove deprecated option "dev"sapics1-1/+1
dev packages are installed by default now
2020-04-13Update Ubuntu from Trusty to Xenial on Travissapics1-22/+65
PHP7.4+ have less updates in Trusty on Travis
2020-04-06[ci skip] Merge pull request #5938 from taitomagatsu/fix-image-creation-from-pngAndrey Andreev1-2/+3
Fixed issue with creating a resource from png using Image_lib
2020-04-02Fixed issue with creating a resource from png using Image_libDiego1-2/+3
2020-03-30[ci skip] Update upgrade instructions for 3.1.12Andrey Andreev1-0/+6
2020-03-30[ci skip] Merge pull request #5918 from wobility/patch-1Andrey Andreev1-0/+2
Update with heic format
2020-03-30[ci skip] Merge pull request #5918 from wobility/patch-1Andrey Andreev1-0/+2
Update with heic format
2020-03-30[ci skip] Add changelog entry for PR #5895Andrey Andreev1-0/+1
2020-03-30[ci skip] Merge pull request #5895 from joshkel/pdo-db-closeAndrey Andreev1-0/+13
Fix database connection leak when closing PDO connection
2020-03-30[ci skip] Merge pull request #5895 from joshkel/pdo-db-closeAndrey Andreev1-0/+13
Fix database connection leak when closing PDO connection
2020-03-30[ci skip] Merge pull request #5907 from pkarunyu/developAndrey Andreev1-2/+2
Fixed double spacing in mimes.php
2020-03-30[ci skip] Merge pull request #5907 from pkarunyu/developAndrey Andreev1-2/+2
Fixed double spacing in mimes.php
2020-03-30[ci skip] Add changelog entry for #5903Andrey Andreev1-0/+1
2020-03-30[ci skip] Merge pull request #5903 from achraf52/patch-2Andrey Andreev1-1/+1
Add HTTP/2.0 server protocol value variation
2020-03-30[ci skip] Merge pull request #5903 from achraf52/patch-2Andrey Andreev1-1/+1
Add HTTP/2.0 server protocol value variation
2020-03-30[ci skip] Fix #5906Andrey Andreev2-12/+4