]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
3 years agoMerge pull request #23999 from nextcloud/fix/old-legacy-scripts
Morris Jobke [Mon, 9 Nov 2020 15:58:40 +0000 (16:58 +0100)]
Merge pull request #23999 from nextcloud/fix/old-legacy-scripts

Remove old legacy scripts references

3 years agoMerge pull request #23994 from nextcloud/fix/comment_search
Roeland Jago Douma [Mon, 9 Nov 2020 14:52:01 +0000 (15:52 +0100)]
Merge pull request #23994 from nextcloud/fix/comment_search

Update comment search to initFS

3 years agoMerge pull request #23889 from nextcloud/fix/noid/shortcut-to-avoid-filesystem-setup
Morris Jobke [Mon, 9 Nov 2020 13:11:15 +0000 (14:11 +0100)]
Merge pull request #23889 from nextcloud/fix/noid/shortcut-to-avoid-filesystem-setup

Shortcut to avoid file system setup when generating the logo URL

3 years agoRemoved config.js 23999/head
John Molakvoæ [Mon, 9 Nov 2020 11:23:51 +0000 (12:23 +0100)]
Removed config.js

3 years agoRemove old legacy search script
John Molakvoæ [Mon, 9 Nov 2020 11:18:34 +0000 (12:18 +0100)]
Remove old legacy search script

3 years agoMerge pull request #23937 from nextcloud/bugfix/noid/files-ocdb
John Molakvoæ [Mon, 9 Nov 2020 10:58:36 +0000 (11:58 +0100)]
Merge pull request #23937 from nextcloud/bugfix/noid/files-ocdb

Use query builder instead of OC_DB in OC\Files\*

3 years agoMerge pull request #23976 from nextcloud/enh/reduce_getAppPath_and_autoload_reg
Morris Jobke [Mon, 9 Nov 2020 10:10:33 +0000 (11:10 +0100)]
Merge pull request #23976 from nextcloud/enh/reduce_getAppPath_and_autoload_reg

Reduce the getAppPath and autoloader calls

3 years agoMerge pull request #23982 from nextcloud/fix/quota-storage-getsize
Morris Jobke [Mon, 9 Nov 2020 10:03:25 +0000 (11:03 +0100)]
Merge pull request #23982 from nextcloud/fix/quota-storage-getsize

Make sure root storage is valid before checking its size

3 years agoMerge pull request #23741 from Ashod/lock-leak
Morris Jobke [Mon, 9 Nov 2020 10:00:46 +0000 (11:00 +0100)]
Merge pull request #23741 from Ashod/lock-leak

Unlock when promoting to exclusive lock fails

3 years agoMerge pull request #23978 from nextcloud/enh/query_servercontainer_first
Morris Jobke [Mon, 9 Nov 2020 09:58:26 +0000 (10:58 +0100)]
Merge pull request #23978 from nextcloud/enh/query_servercontainer_first

First query the server container

3 years agoMerge pull request #23933 from nextcloud/bugfix/noid/user-ldap-ocdb
Morris Jobke [Mon, 9 Nov 2020 09:07:25 +0000 (10:07 +0100)]
Merge pull request #23933 from nextcloud/bugfix/noid/user-ldap-ocdb

Use query builder instead of OC_DB in user_ldap

3 years agoShortcut to avoid file system setup when generating the logo URL 23889/head
Morris Jobke [Wed, 4 Nov 2020 08:59:32 +0000 (09:59 +0100)]
Shortcut to avoid file system setup when generating the logo URL

If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then).

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 years agoUpdate comment search to initFS 23994/head
Roeland Jago Douma [Mon, 9 Nov 2020 08:52:23 +0000 (09:52 +0100)]
Update comment search to initFS

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #23574 from nextcloud/fix/23569
John Molakvoæ [Mon, 9 Nov 2020 08:14:21 +0000 (09:14 +0100)]
Merge pull request #23574 from nextcloud/fix/23569

Fix link share label placeholder not showing

3 years agoUse query builder instead of OC_DB in OC\Files\* 23937/head
Joas Schilling [Fri, 6 Nov 2020 11:06:24 +0000 (12:06 +0100)]
Use query builder instead of OC_DB in OC\Files\*

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMake sure root storage is valid before checking its size 23982/head
John Molakvoæ (skjnldsv) [Sat, 7 Nov 2020 23:10:06 +0000 (00:10 +0100)]
Make sure root storage is valid before checking its size

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years agoTest requires the DB 23933/head
Joas Schilling [Mon, 9 Nov 2020 07:40:00 +0000 (08:40 +0100)]
Test requires the DB

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 9 Nov 2020 02:18:51 +0000 (02:18 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #23983 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Roeland Jago Douma [Sun, 8 Nov 2020 10:23:56 +0000 (11:23 +0100)]
Merge pull request #23983 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoUpdate psalm baseline 23983/head
Nextcloud-PR-Bot [Sun, 8 Nov 2020 04:26:59 +0000 (04:26 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 8 Nov 2020 02:18:22 +0000 (02:18 +0000)]
[tx-robot] updated from transifex

3 years agoFix link share label placeholder not showing 23574/head
Gary Kim [Mon, 19 Oct 2020 15:07:09 +0000 (11:07 -0400)]
Fix link share label placeholder not showing

Signed-off-by: Gary Kim <gary@garykim.dev>
3 years agoFirst query the server container 23978/head
Roeland Jago Douma [Sat, 7 Nov 2020 16:51:41 +0000 (17:51 +0100)]
First query the server container

When the servercontainer wants to obtain something changes are very high
this is something from the server container. Esp on setups with a lot of
shares this can change quite a bit as it avoid a needless check on the
strpos OCA\\ etc.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoReduce the getAppPath and autoloader calls 23976/head
Roeland Jago Douma [Sat, 7 Nov 2020 16:24:41 +0000 (17:24 +0100)]
Reduce the getAppPath and autoloader calls

The getAppPath will always return the same data for the same appId. It
is actually already cached. However we do some cleanup of the appId
(again). Same for the autoloading it is actually already checked.

This just removes the unneeded calls. Which can add up if you have a lot
of incomming shares.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #23923 from nextcloud/bugfix/oci/fix-greatest-order-for-oracle
Roeland Jago Douma [Sat, 7 Nov 2020 15:55:13 +0000 (16:55 +0100)]
Merge pull request #23923 from nextcloud/bugfix/oci/fix-greatest-order-for-oracle

Fix greatest/least order for oracle

3 years agoUnlock when promoting to exclusive lock fails 23741/head
Ashod Nakashian [Wed, 28 Oct 2020 02:57:24 +0000 (22:57 -0400)]
Unlock when promoting to exclusive lock fails

In certain cases changeLock to EXCLUSIVE fails
and throws LockedException. This leaves the
file locked as SHARED in file_put_contents,
which prevents retrying (because on second
call file_put_contents takes another SHARED
lock on the same file, and changeLock doesn't
allow more than a single SHARED lock to promote
to EXCLUSIVE).

To avoid this case, we catch the LockedException
and unlock before re-throwing.

Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
3 years agoMerge pull request #23956 from nextcloud/dependabot/npm_and_yarn/node-sass-5.0.0
John Molakvoæ [Sat, 7 Nov 2020 13:13:02 +0000 (14:13 +0100)]
Merge pull request #23956 from nextcloud/dependabot/npm_and_yarn/node-sass-5.0.0

Bump node-sass from 4.14.1 to 5.0.0

3 years agoUpdate parameters 23923/head
Joas Schilling [Sat, 7 Nov 2020 13:06:03 +0000 (14:06 +0100)]
Update parameters

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoBump node-sass from 4.14.1 to 5.0.0 23956/head
dependabot-preview[bot] [Sat, 7 Nov 2020 11:13:51 +0000 (11:13 +0000)]
Bump node-sass from 4.14.1 to 5.0.0

Bumps [node-sass](https://github.com/sass/node-sass) from 4.14.1 to 5.0.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.14.1...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
3 years agoMerge pull request #23961 from nextcloud/dependabot/npm_and_yarn/css-vars-ponyfill...
dependabot-preview[bot] [Sat, 7 Nov 2020 11:10:32 +0000 (11:10 +0000)]
Merge pull request #23961 from nextcloud/dependabot/npm_and_yarn/css-vars-ponyfill-2.4.1

3 years agoMerge pull request #23957 from nextcloud/dependabot/npm_and_yarn/vue-loader-15.9.5
John Molakvoæ [Sat, 7 Nov 2020 09:36:57 +0000 (10:36 +0100)]
Merge pull request #23957 from nextcloud/dependabot/npm_and_yarn/vue-loader-15.9.5

Bump vue-loader from 15.9.4 to 15.9.5

3 years agoMerge pull request #23960 from nextcloud/dependabot/npm_and_yarn/bootstrap-4.5.3
John Molakvoæ [Sat, 7 Nov 2020 09:36:43 +0000 (10:36 +0100)]
Merge pull request #23960 from nextcloud/dependabot/npm_and_yarn/bootstrap-4.5.3

Bump bootstrap from 4.5.2 to 4.5.3

3 years agoMerge pull request #23962 from nextcloud/dependabot/npm_and_yarn/vue-router-3.4.9
John Molakvoæ [Sat, 7 Nov 2020 09:36:35 +0000 (10:36 +0100)]
Merge pull request #23962 from nextcloud/dependabot/npm_and_yarn/vue-router-3.4.9

Bump vue-router from 3.4.8 to 3.4.9

3 years agoMerge pull request #23964 from nextcloud/dependabot/npm_and_yarn/marked-1.2.3
John Molakvoæ [Sat, 7 Nov 2020 09:36:15 +0000 (10:36 +0100)]
Merge pull request #23964 from nextcloud/dependabot/npm_and_yarn/marked-1.2.3

Bump marked from 1.2.0 to 1.2.3

3 years agoMerge pull request #23936 from nextcloud/bugfix/noid/trashbin-ocdb
John Molakvoæ [Sat, 7 Nov 2020 09:19:23 +0000 (10:19 +0100)]
Merge pull request #23936 from nextcloud/bugfix/noid/trashbin-ocdb

Use query builder instead of OC_DB in trashbin

3 years agoBump css-vars-ponyfill from 2.3.2 to 2.4.1 23961/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:24:25 +0000 (02:24 +0000)]
Bump css-vars-ponyfill from 2.3.2 to 2.4.1

Bumps [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-ponyfill) from 2.3.2 to 2.4.1.
- [Release notes](https://github.com/jhildenbiddle/css-vars-ponyfill/releases)
- [Changelog](https://github.com/jhildenbiddle/css-vars-ponyfill/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jhildenbiddle/css-vars-ponyfill/compare/v2.3.2...v2.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
3 years agoBump vue-loader from 15.9.4 to 15.9.5 23957/head
dependabot-preview[bot] [Sat, 7 Nov 2020 09:15:44 +0000 (09:15 +0000)]
Bump vue-loader from 15.9.4 to 15.9.5

Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.4 to 15.9.5.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/compare/v15.9.4...v15.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoMerge pull request #23965 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.2.0
dependabot-preview[bot] [Sat, 7 Nov 2020 09:13:23 +0000 (09:13 +0000)]
Merge pull request #23965 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.2.0

3 years agoMerge pull request #23934 from nextcloud/enh/avoid_scss_compile
John Molakvoæ [Sat, 7 Nov 2020 09:11:50 +0000 (10:11 +0100)]
Merge pull request #23934 from nextcloud/enh/avoid_scss_compile

3 years agoFix tests to return config default values 23934/head
Morris Jobke [Fri, 6 Nov 2020 21:53:33 +0000 (22:53 +0100)]
Fix tests to return config default values

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 years agoBump vue-router from 3.4.8 to 3.4.9 23962/head
dependabot-preview[bot] [Sat, 7 Nov 2020 09:03:47 +0000 (09:03 +0000)]
Bump vue-router from 3.4.8 to 3.4.9

Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.4.8 to 3.4.9.
- [Release notes](https://github.com/vuejs/vue-router/releases)
- [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-router/compare/v3.4.8...v3.4.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoMerge pull request #23966 from nextcloud/dependabot/npm_and_yarn/vue-material-design...
dependabot-preview[bot] [Sat, 7 Nov 2020 09:01:22 +0000 (09:01 +0000)]
Merge pull request #23966 from nextcloud/dependabot/npm_and_yarn/vue-material-design-icons-4.10.0

3 years agoMerge pull request #23963 from nextcloud/dependabot/npm_and_yarn/sinon-9.2.1
dependabot-preview[bot] [Sat, 7 Nov 2020 07:59:41 +0000 (07:59 +0000)]
Merge pull request #23963 from nextcloud/dependabot/npm_and_yarn/sinon-9.2.1

3 years agoMerge pull request #23968 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Roeland Jago Douma [Sat, 7 Nov 2020 06:58:42 +0000 (07:58 +0100)]
Merge pull request #23968 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoBump sinon from 9.2.0 to 9.2.1 23963/head
dependabot-preview[bot] [Sat, 7 Nov 2020 04:42:20 +0000 (04:42 +0000)]
Bump sinon from 9.2.0 to 9.2.1

Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.0 to 9.2.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoMerge pull request #23959 from nextcloud/dependabot/npm_and_yarn/sass-loader-10.0.5
dependabot-preview[bot] [Sat, 7 Nov 2020 04:39:49 +0000 (04:39 +0000)]
Merge pull request #23959 from nextcloud/dependabot/npm_and_yarn/sass-loader-10.0.5

3 years agoUpdate psalm baseline 23968/head
Nextcloud-PR-Bot [Sat, 7 Nov 2020 04:26:22 +0000 (04:26 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years agoBump vue-material-design-icons from 4.9.0 to 4.10.0 23966/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:28:03 +0000 (02:28 +0000)]
Bump vue-material-design-icons from 4.9.0 to 4.10.0

Bumps [vue-material-design-icons](https://github.com/robcresswell/vue-material-design-icons) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/robcresswell/vue-material-design-icons/releases)
- [Changelog](https://github.com/robcresswell/vue-material-design-icons/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/robcresswell/vue-material-design-icons/compare/4.9.0...4.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoBump webpack-cli from 4.1.0 to 4.2.0 23965/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:27:13 +0000 (02:27 +0000)]
Bump webpack-cli from 4.1.0 to 4.2.0

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.1.0...webpack-cli@4.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoBump marked from 1.2.0 to 1.2.3 23964/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:26:33 +0000 (02:26 +0000)]
Bump marked from 1.2.0 to 1.2.3

Bumps [marked](https://github.com/markedjs/marked) from 1.2.0 to 1.2.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v1.2.0...v1.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoBump bootstrap from 4.5.2 to 4.5.3 23960/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:23:32 +0000 (02:23 +0000)]
Bump bootstrap from 4.5.2 to 4.5.3

Bumps [bootstrap](https://github.com/twbs/bootstrap) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](https://github.com/twbs/bootstrap/compare/v4.5.2...v4.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoBump sass-loader from 10.0.4 to 10.0.5 23959/head
dependabot-preview[bot] [Sat, 7 Nov 2020 02:22:14 +0000 (02:22 +0000)]
Bump sass-loader from 10.0.4 to 10.0.5

Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 10.0.4 to 10.0.5.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v10.0.4...v10.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 7 Nov 2020 02:18:58 +0000 (02:18 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #23821 from nextcloud/td/enh/no_fs_setup_by_default
Morris Jobke [Fri, 6 Nov 2020 22:03:09 +0000 (23:03 +0100)]
Merge pull request #23821 from nextcloud/td/enh/no_fs_setup_by_default

Do not setup the default FS on normal routes

3 years agoMerge pull request #23942 from nextcloud/techdebt/cookie-lax-php7.3
Morris Jobke [Fri, 6 Nov 2020 21:42:20 +0000 (22:42 +0100)]
Merge pull request #23942 from nextcloud/techdebt/cookie-lax-php7.3

Remove the cookie paths for php<7.3

3 years agoMerge pull request #23938 from nextcloud/bugfix/oci/sharing-ocdb
Morris Jobke [Fri, 6 Nov 2020 21:41:20 +0000 (22:41 +0100)]
Merge pull request #23938 from nextcloud/bugfix/oci/sharing-ocdb

Replace some usages of OC_DB in OC\Share\* with query builder

3 years agoMerge pull request #23851 from nextcloud/enh/read_env_only_once
Morris Jobke [Fri, 6 Nov 2020 21:35:00 +0000 (22:35 +0100)]
Merge pull request #23851 from nextcloud/enh/read_env_only_once

Read the env variables only once

3 years agoUse query builder instead of OC_DB in trashbin 23936/head
Joas Schilling [Fri, 6 Nov 2020 10:48:52 +0000 (11:48 +0100)]
Use query builder instead of OC_DB in trashbin

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #23943 from nextcloud/bugfix/oci/fix-ilike-on-oracle
Morris Jobke [Fri, 6 Nov 2020 21:27:30 +0000 (22:27 +0100)]
Merge pull request #23943 from nextcloud/bugfix/oci/fix-ilike-on-oracle

Fix iLike() falsely turning escaped % and _ into wildcards

3 years agoMerge pull request #23922 from nextcloud/bugfix/noid/fix-query-type-detection
Morris Jobke [Fri, 6 Nov 2020 21:18:14 +0000 (22:18 +0100)]
Merge pull request #23922 from nextcloud/bugfix/noid/fix-query-type-detection

Improve query type detection

3 years agoMerge pull request #23928 from nextcloud/bugfix/oci/dont-leave-stray-cursors-on-mimet...
Morris Jobke [Fri, 6 Nov 2020 21:09:44 +0000 (22:09 +0100)]
Merge pull request #23928 from nextcloud/bugfix/oci/dont-leave-stray-cursors-on-mimetype-update

Fix repair mimetype step to not leave stray cursors

3 years agoMerge pull request #23940 from nextcloud/enh/skip_already_loaded_apps
Morris Jobke [Fri, 6 Nov 2020 20:58:44 +0000 (21:58 +0100)]
Merge pull request #23940 from nextcloud/enh/skip_already_loaded_apps

Skip already loaded apps in loadApps

3 years agoMerge pull request #23919 from nextcloud/dependabot/npm_and_yarn/css-loader-5.0.1
dependabot-preview[bot] [Fri, 6 Nov 2020 20:55:42 +0000 (20:55 +0000)]
Merge pull request #23919 from nextcloud/dependabot/npm_and_yarn/css-loader-5.0.1

3 years agoMerge pull request #23929 from nextcloud/techdebt/noid/deprecate-prepare-and-execute...
Morris Jobke [Fri, 6 Nov 2020 15:24:29 +0000 (16:24 +0100)]
Merge pull request #23929 from nextcloud/techdebt/noid/deprecate-prepare-and-execute-audited-as-they-leak-cursors

Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors

3 years agoFix iLike() falsely turning escaped % and _ into wildcards 23943/head
Joas Schilling [Fri, 6 Nov 2020 14:31:28 +0000 (15:31 +0100)]
Fix iLike() falsely turning escaped % and _ into wildcards

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #23932 from nextcloud/enh/s3/do_not_check_bucket_exists_on_every_r...
Morris Jobke [Fri, 6 Nov 2020 15:13:20 +0000 (16:13 +0100)]
Merge pull request #23932 from nextcloud/enh/s3/do_not_check_bucket_exists_on_every_request

Allow config to specify the bucket exists

3 years agoRemove the cookie paths for php<7.3 23942/head
Christoph Wurst [Fri, 6 Nov 2020 14:57:17 +0000 (15:57 +0100)]
Remove the cookie paths for php<7.3

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoSkip already loaded apps in loadApps 23940/head
Roeland Jago Douma [Fri, 6 Nov 2020 13:26:42 +0000 (14:26 +0100)]
Skip already loaded apps in loadApps

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>
3 years agofix insert values
Arthur Schiwon [Fri, 6 Nov 2020 12:30:19 +0000 (13:30 +0100)]
fix insert values

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoReplace some usages of OC_DB in OC\Share\* with query builder 23938/head
Joas Schilling [Fri, 6 Nov 2020 12:02:14 +0000 (13:02 +0100)]
Replace some usages of OC_DB in OC\Share\* with query builder

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoonly delete specified config
Arthur Schiwon [Fri, 6 Nov 2020 12:01:37 +0000 (13:01 +0100)]
only delete specified config

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoMake sure Oracle always casts everything in the best way
Joas Schilling [Fri, 6 Nov 2020 07:52:09 +0000 (08:52 +0100)]
Make sure Oracle always casts everything in the best way

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoUse Query builder function
Joas Schilling [Fri, 6 Nov 2020 07:44:46 +0000 (08:44 +0100)]
Use Query builder function

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix order of GREATEST for Oracle
Joas Schilling [Wed, 4 Nov 2020 16:02:23 +0000 (17:02 +0100)]
Fix order of GREATEST for Oracle

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>
3 years agoCorrectly place the array type
Joas Schilling [Fri, 6 Nov 2020 11:09:58 +0000 (12:09 +0100)]
Correctly place the array type

3 years agoMerge pull request #23921 from nextcloud/techdebt/oci/fix-casting-to-integer
Julius Härtl [Fri, 6 Nov 2020 10:39:48 +0000 (11:39 +0100)]
Merge pull request #23921 from nextcloud/techdebt/oci/fix-casting-to-integer

Fix casting to integer on Oracle

3 years agoAvoid SCSS compilation if not needed
Roeland Jago Douma [Fri, 6 Nov 2020 10:26:53 +0000 (11:26 +0100)]
Avoid SCSS compilation if not needed

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>
3 years agoUse query builder to interact with member management
Joas Schilling [Fri, 6 Nov 2020 10:28:53 +0000 (11:28 +0100)]
Use query builder to interact with member management

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoUse query builder instead of OC_DB in user_ldap
Joas Schilling [Fri, 6 Nov 2020 10:25:28 +0000 (11:25 +0100)]
Use query builder instead of OC_DB in user_ldap

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoAllow config to specify the bucket exists 23932/head
Roeland Jago Douma [Fri, 6 Nov 2020 10:06:40 +0000 (11:06 +0100)]
Allow config to specify the bucket exists

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>
3 years agoDeprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors 23929/head
Joas Schilling [Fri, 6 Nov 2020 09:37:37 +0000 (10:37 +0100)]
Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix repair mimetype step to not leave stray cursors 23928/head
Joas Schilling [Fri, 6 Nov 2020 09:26:41 +0000 (10:26 +0100)]
Fix repair mimetype step to not leave stray cursors

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix tests 23851/head
Roeland Jago Douma [Fri, 6 Nov 2020 08:37:45 +0000 (09:37 +0100)]
Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #23920 from nextcloud/fix/match_bearer_front
Morris Jobke [Fri, 6 Nov 2020 08:19:05 +0000 (09:19 +0100)]
Merge pull request #23920 from nextcloud/fix/match_bearer_front

Bearer must be in the start of the auth header

3 years agoMerge pull request #23918 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Morris Jobke [Fri, 6 Nov 2020 08:11:33 +0000 (09:11 +0100)]
Merge pull request #23918 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoFix getstorage call 23821/head
Roeland Jago Douma [Fri, 6 Nov 2020 08:03:20 +0000 (09:03 +0100)]
Fix getstorage call

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoDo not setup the default FS on normal routes
Roeland Jago Douma [Sat, 31 Oct 2020 14:10:48 +0000 (15:10 +0100)]
Do not setup the default FS on normal routes

This should help with load times hopefully. Only initialize the FS if we
actually ned it.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoBump css-loader from 3.6.0 to 5.0.1 23919/head
dependabot-preview[bot] [Fri, 6 Nov 2020 07:06:21 +0000 (07:06 +0000)]
Bump css-loader from 3.6.0 to 5.0.1

Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.6.0 to 5.0.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.6.0...v5.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
3 years agoImprove query type detection 23922/head
Joas Schilling [Thu, 5 Nov 2020 16:08:35 +0000 (17:08 +0100)]
Improve query type detection

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix casting to integer on Oracle 23921/head
Joas Schilling [Thu, 5 Nov 2020 09:50:21 +0000 (10:50 +0100)]
Fix casting to integer on Oracle

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoBearer must be in the start of the auth header 23920/head
Roeland Jago Douma [Fri, 6 Nov 2020 07:32:50 +0000 (08:32 +0100)]
Bearer must be in the start of the auth header

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #23347 from st3iny/enhancement/19526/new-share-pending-confirm...
John Molakvoæ [Fri, 6 Nov 2020 07:04:07 +0000 (08:04 +0100)]
Merge pull request #23347 from st3iny/enhancement/19526/new-share-pending-confirm-button

3 years agoMerge pull request #23916 from nextcloud/dependabot/npm_and_yarn/mocha-8.2.1
dependabot-preview[bot] [Fri, 6 Nov 2020 06:54:29 +0000 (06:54 +0000)]
Merge pull request #23916 from nextcloud/dependabot/npm_and_yarn/mocha-8.2.1

3 years agoUpdate psalm baseline 23918/head
Nextcloud-PR-Bot [Fri, 6 Nov 2020 04:25:56 +0000 (04:25 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 6 Nov 2020 02:19:11 +0000 (02:19 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #23857 from nextcloud/dependabot/composer/vimeo/psalm-4.1.1
Morris Jobke [Thu, 5 Nov 2020 22:56:56 +0000 (23:56 +0100)]
Merge pull request #23857 from nextcloud/dependabot/composer/vimeo/psalm-4.1.1

Bump vimeo/psalm from 4.0.1 to 4.1.1

3 years agoBump vimeo/psalm from 4.0.1 to 4.1.1 23857/head
dependabot-preview[bot] [Thu, 5 Nov 2020 22:41:22 +0000 (22:41 +0000)]
Bump vimeo/psalm from 4.0.1 to 4.1.1

Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.0.1 to 4.1.1.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.0.1...4.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoMerge pull request #23906 from nextcloud/techdebt/noid/simplify-can-change-user-pasword
Morris Jobke [Thu, 5 Nov 2020 22:39:13 +0000 (23:39 +0100)]
Merge pull request #23906 from nextcloud/techdebt/noid/simplify-can-change-user-pasword

Simplify the check if admin can change password based on encryption status

3 years agoMerge pull request #23887 from ecsecta/fix_23797
Morris Jobke [Thu, 5 Nov 2020 21:58:30 +0000 (22:58 +0100)]
Merge pull request #23887 from ecsecta/fix_23797

Do not emit UserCreatedEvent twice

3 years agoSimplify the check if admin can change password based on encryption status 23906/head
Morris Jobke [Thu, 5 Nov 2020 12:21:19 +0000 (13:21 +0100)]
Simplify the check if admin can change password based on encryption status

Found by Psalm:
```
/home/runner/work/server/server/apps/settings/lib/Controller/UsersController.php:324:8:error - RedundantCondition: Type true for $isEncryptionModuleLoaded is never falsy
```

Signed-off-by: Morris Jobke <hey@morrisjobke.de>