summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #23923 from ↵Roeland Jago Douma2020-11-074-4/+73
|\ | | | | | | | | nextcloud/bugfix/oci/fix-greatest-order-for-oracle Fix greatest/least order for oracle
| * Update parametersJoas Schilling2020-11-073-2/+28
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Make sure Oracle always casts everything in the best wayJoas Schilling2020-11-061-0/+43
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use Query builder functionJoas Schilling2020-11-061-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix order of GREATEST for OracleJoas Schilling2020-11-061-3/+3
| | | | | | | | | | | | | | | | | | As per https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions060.htm Oracle uses the first value to cast the rest or the values. So when the first value is a plain int, instead of doing the math, it will cast the expression to int and continue with a potential 0. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #23934 from nextcloud/enh/avoid_scss_compileJohn Molakvoæ2020-11-071-3/+13
|\ \
| * | Avoid SCSS compilation if not neededRoeland Jago Douma2020-11-061-3/+13
| |/ | | | | | | | | | | | | | | Now we do on each template load a compile with the SCSS variables to see if they changed or not. However there is no real reason for this if the variables didn't change. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #23942 from nextcloud/techdebt/cookie-lax-php7.3Morris Jobke2020-11-063-33/+21
|\ \ | | | | | | Remove the cookie paths for php<7.3
| * | Remove the cookie paths for php<7.3Christoph Wurst2020-11-063-33/+21
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #23938 from nextcloud/bugfix/oci/sharing-ocdbMorris Jobke2020-11-062-29/+39
|\ \ \ | | | | | | | | Replace some usages of OC_DB in OC\Share\* with query builder
| * | | Replace some usages of OC_DB in OC\Share\* with query builderJoas Schilling2020-11-062-29/+39
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #23851 from nextcloud/enh/read_env_only_onceMorris Jobke2020-11-061-3/+7
|\ \ \ | | | | | | | | Read the env variables only once
| * | | Read the env variables only onceRoeland Jago Douma2020-11-021-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We read config.php an awefull lot of times. So it only makes sense to kill this as much as wel can. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | 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-042-2/+278
|\ \ \ \ | | | | | | | | | | Cleanup routing
| * | | | Cleanup route registration logicRoeland Jago Douma2020-11-032-2/+278
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 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-041-0/+40
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | 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-041-0/+40
| | |/ | |/| | | | | | | 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-036-94/+112
|\ \ | | | | | | | | | | | | 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-032-0/+63
| | | | | | | | | | | | | | | | | | 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-033-91/+22
| |/ | | | | | | | | | | | | | | | | * 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 #22373 from nextcloud/fix-example-usage-for-mailerJohn Molakvoæ2020-10-311-3/+3
|\ \ | |/ |/| Fix example usage
| * Fix example usagekevin1471472020-08-231-3/+3
| |