summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #23943 from nextcloud/bugfix/oci/fix-ilike-on-oracleMorris Jobke2020-11-061-3/+1
|\ | | | | Fix iLike() falsely turning escaped % and _ into wildcards
| * Fix iLike() falsely turning escaped % and _ into wildcardsJoas Schilling2020-11-061-3/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #23922 from nextcloud/bugfix/noid/fix-query-type-detectionMorris Jobke2020-11-061-6/+9
|\ \ | | | | | | Improve query type detection
| * | Improve query type detectionJoas Schilling2020-11-061-6/+9
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #23928 from ↵Morris Jobke2020-11-062-53/+43
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/oci/dont-leave-stray-cursors-on-mimetype-update Fix repair mimetype step to not leave stray cursors
| * | | Fix repair mimetype step to not leave stray cursorsJoas Schilling2020-11-062-53/+43
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #23940 from nextcloud/enh/skip_already_loaded_appsMorris Jobke2020-11-061-3/+3
|\ \ \ \ | | | | | | | | | | Skip already loaded apps in loadApps
| * | | | Skip already loaded apps in loadAppsRoeland Jago Douma2020-11-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise you might end up calling a lot of functions unneeded. And while the individual calls are cheap if you multiply them by 20k they still get somewhat expensive. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | | Merge pull request #23929 from ↵Morris Jobke2020-11-061-0/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | nextcloud/techdebt/noid/deprecate-prepare-and-execute-audited-as-they-leak-cursors Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors
| * | | | Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursorsJoas Schilling2020-11-061-0/+2
| | |/ / | |/| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #23932 from ↵Morris Jobke2020-11-061-1/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | nextcloud/enh/s3/do_not_check_bucket_exists_on_every_request Allow config to specify the bucket exists
| * | | Allow config to specify the bucket existsRoeland Jago Douma2020-11-061-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the 99% case the bucket is just always there. And if it is not the read/write will fail hard anyways. Esp on big instances the Objectstore is not always fast and this can save a few hundered ms of each request that acess the objectstore. In short it is adding 'verify_bucket_exists' => false To the S3 config part Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #23921 from nextcloud/techdebt/oci/fix-casting-to-integerJulius Härtl2020-11-061-0/+4
|\ \ \ | |/ / |/| | Fix casting to integer on Oracle
| * | Fix casting to integer on OracleJoas Schilling2020-11-061-0/+4
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Bearer must be in the start of the auth headerRoeland Jago Douma2020-11-061-3/+3
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23887 from ecsecta/fix_23797Morris Jobke2020-11-051-5/+0
|\ | | | | Do not emit UserCreatedEvent twice
| * fix: also remove use statement of UserCreatedEventTobias Assmann2020-11-051-1/+0
| | | | | | | | Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
| * fix: no more translation from postCreateUser hook to UserCreatedEvent ↵Tobias Assmann2020-11-041-4/+0
| | | | | | | | | | | | anymore, as event is already emitted in user manager Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
* | Merge pull request #23901 from ↵Roeland Jago Douma2020-11-051-0/+2
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/deprecate-old-usermanager-events Deprecate old user manager events for user creation
| * | Deprecate old user manager events for user creationMorris Jobke2020-11-041-0/+2
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #23819 from nextcloud/td/routing/move_things_aroundMorris Jobke2020-11-044-2/+280
|\ \ \ | | | | | | | | Cleanup routing
| * | | Cleanup route registration logicRoeland Jago Douma2020-11-034-2/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a bunch of cylic things being called. This is an attempt to clean this all up. If an app provides an array of routes. We just parse them and hand them back. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #23792 from ↵Morris Jobke2020-11-042-0/+51
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | nextcloud/techdebt/noid/group-unread-comment-count-query Add a function to get the unread count for multiple objects in one go
| * | | Add a function to get the unread count for multiple objects in one goJoas Schilling2020-11-042-0/+51
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / | Document the behaviour inlineMorris Jobke2020-11-041-0/+2
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #21693 from ↵Morris Jobke2020-11-0310-106/+125
|\ \ | | | | | | | | | | | | nextcloud/fix/noid/import-certificates-only-by-system Improve CertificateManager to not be user context dependent
| * | Add a background job that checks for potential user imported SSL ↵Morris Jobke2020-11-034-0/+67
| | | | | | | | | | | | | | | | | | certificates and shows a warning in the admin settings Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Always return the default path if we canRoeland Jago Douma2020-11-032-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | Just check in the certifcate manager. So every part of the system that request the certificatebundle gets the defaullt one (the 99% case) if we can. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Improve CertificateManager to not be user context dependentMorris Jobke2020-11-035-103/+31
| |/ | | | | | | | | | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Replace prefix in executeUpdateJulius Härtl2020-11-031-0/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #23839 from nextcloud/fix/noid/avatar-statusMorris Jobke2020-11-021-1/+1
|\ | | | | No need to check if there is an avatar available, because it is gener…
| * No need to check if there is an avatar available, because it is generated on ↵Morris Jobke2020-11-021-1/+1
| | | | | | | | | | | | the fly nowadays Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Move localecache to arrayRoeland Jago Douma2020-11-021-7/+5
|/ | | | | | | | It seems the DS Set in the polyfill implementation is a lot less efficient than normal arrays. (A LOT!). So for now use a stupid normal array. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23822 from nextcloud/enh/parse_localse_only_onceRoeland Jago Douma2020-11-021-5/+14
|\ | | | | Only parse the locales ones
| * Only parse the locales onesRoeland Jago Douma2020-10-311-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | Before we'd go over the entire list for each translation (so each app) we'd use translation for. This means we'd also go over thise locale list (currently containing 750 entries) * apps so often this added up to ~20k calls. now we just dump the locales in a set once and then check if the entry is there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #23827 from nextcloud/td/cleanup/ocsresponseJohn Molakvoæ2020-11-023-97/+0
|\ \ | | | | | | Remove deprecated OCSResponse
| * | Remove deprecated OCSResponseRoeland Jago Douma2020-11-013-97/+0
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | [tx-robot] updated from transifexNextcloud bot2020-11-012-2/+2
| |
* | Merge pull request #22373 from nextcloud/fix-example-usage-for-mailerJohn Molakvoæ2020-10-311-3/+3
|\ \ | |/ |/| Fix example usage
| * Fix example usagekevin1471472020-08-231-3/+3
| |
* | Merge pull request #23764 from nextcloud/3rdparty/doctrine/dbal/2.12.0Roeland Jago Douma2020-10-315-30/+50
|\ \ | | | | | | [3rdparty] Bump doctrine/dbal to 2.12.0
| * | Psalm fixesRoeland Jago Douma2020-10-305-30/+50
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Update internal connection classRoeland Jago Douma2020-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | | executeUpdate is deprecated in favor of executeStatement. We overwrote the old one hence the prefix was no longer replaced. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | [tx-robot] updated from transifexNextcloud bot2020-10-312-4/+8
|/ /
* | Revert "[Automated] Update psalm-baseline.xml"Morris Jobke2020-10-302532-363506/+4
| |
* | Merge pull request #23742 from ↵Morris Jobke2020-10-301-0/+2
|\ \ | | | | | | | | | | | | nextcloud/enhancement/eventdispatcher-typed-listener-callable Type the event dispatcher listener callables with Psalm
| * | Type the event dispatcher listener callables with PsalmChristoph Wurst2020-10-281-0/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #23786 from ↵Morris Jobke2020-10-302532-4/+363506
|\ \ \ | | | | | | | | | | | | | | | | nextcloud-pr-bot/automated/noid/psalm-baseline-update [Automated] Update psalm-baseline.xml
| * | | Update psalm baselineNextcloud-PR-Bot2020-10-302532-4/+363506
| | | | | | | | | | | | | | | | Signed-off-by: GitHub <noreply@github.com>
* | | | Fetch the logger and system config once for all query builder instancesMorris Jobke2020-10-291-8/+15
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>