summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-1/+1
| | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #17684 from mlatief/support-no-proxyRoeland Jago Douma2020-03-221-7/+34
|\ | | | | Add support for GuzzleHTTP 'no' proxy
| * Add support for GuzzleHTTP 'no' proxyMohammed Abdellatif2020-02-291-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The custom config allows to setup a proxy URI that is passed to GuzzleHTTP client as request options. Guzzle has the option to receive an array of proxies for each URI scheme as well as 'no' key value pair to provide a list of host names that should not be proxied to. Guzzle would automatically populate these options with HTTPS_PROXY and NO_PROXY environment variables. However, when providing a 'proxy' request option, default values will be overriden and it is required to explicitly provide the 'no' value if needed. More info: http://docs.guzzlephp.org/en/stable/request-options.html#proxy This commit will add support for a new config 'proxyexclude', which takes a list of host names to be excluded. It will also provide 'proxy' request option as an array instead of a string to Guzzle, and populate 'http' and 'https' URI schemes with proxy URI, and 'no' with 'proxyexclude' list. Also, if no 'proxy' is configured, it will leave out 'proxy' request option, so it won't override Guzzle default values. Sample config file includes a hint on how to explicitly sync 'proxyexclude' with NO_PROXY, and a note about default values. Signed-off-by: Mohammed Abdellatif <m.latief@gmail.com>
* | Expose enumeration config though share managerJulius Härtl2020-03-201-0/+9
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Limit enumeration in contacts storeJulius Härtl2020-03-201-1/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Limit user search in Collaborators pluginsJulius Härtl2020-03-203-5/+50
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix recursive calls in logging via server methodsJoas Schilling2020-03-182-162/+196
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19978 from nextcloud/harden/check_for_ownerRoeland Jago Douma2020-03-181-0/+5
|\ \ | | | | | | Actually check if the owner is not null
| * | Actually check if the owner is not nullRoeland Jago Douma2020-03-161-0/+5
| | | | | | | | | | | | | | | | | | | | | Else this can error out on storages that do not have an owner (e.g. groupfolders). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #19981 from nextcloud/enh/reset_target_if_null_after_shareRoeland Jago Douma2020-03-181-0/+5
|\ \ \ | | | | | | | | Update the target when it isempty after sharing
| * | | Update the target when it isempty after sharingRoeland Jago Douma2020-03-161-0/+5
| |/ / | | | | | | | | | | | | | | | | | | Hooks that listen to it (audit log) benefit from having the target properly set. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Move deprecated aliases over to new registrationRoeland Jago Douma2020-03-151-64/+64
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Add a deprecated alias registration to find deprecated usagesRoeland Jago Douma2020-03-151-0/+17
|/ / | | | | | | | | | | | | | | | | Fixes #19345 Basically just a stupid wrapper with extra logging. So that we can at least inform people they are using the wrong methods. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #19954 from roscomputing/fix/19941/fix_safari_useragentRoeland Jago Douma2020-03-151-1/+1
|\ \ | | | | | | fix safari useragent for versions with 3 digits
| * | fix safari useragent for versions with 3 digitsPavel Krasikov2020-03-141-1/+1
| |/ | | | | | | Signed-off-by: Pavel Krasikov <klonishe@gmail.com>
* | Merge pull request #19910 from nextcloud/bugfix/noid/invalid-from-mailRoeland Jago Douma2020-03-131-1/+1
|\ \ | | | | | | Do not use the instance name as user part of from mail addresses
| * | Do not use the instance name as user part of from mail addressesJulius Härtl2020-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | This will cause issues since the theming name can contain characters that are not allowed in the local part of the mail address (like spaces) Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #19888 from nextcloud/fix/objectstore_rename_mimetypeRoeland Jago Douma2020-03-121-6/+1
|\ \ \ | | | | | | | | Get correct mimetype on objectstores
| * | | Get correct mimetype on objectstoresRoeland Jago Douma2020-03-111-6/+1
| |/ / | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / / Only load required scripts on install pageJulius Härtl2020-03-111-8/+10
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #19812 from nextcloud/enh/noid/subscription-configRoeland Jago Douma2020-03-101-0/+13
|\ \ | | | | | | Add config flag for subscription and hide server development notice
| * | Add system config flag to manually set that a subscription is availableJulius Härtl2020-03-101-0/+13
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #19746 from nextcloud/locked-exception-forward-existingRoeland Jago Douma2020-03-091-4/+7
|\ \ \ | | | | | | | | pass the existing locks info when making locked exception with absolu…
| * | | pass the existing locks info when making locked exception with absolute pathsRobin Appelman2020-03-021-4/+7
| | |/ | |/| | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #19820 from nextcloud/fix/mismatching-docblock-return-typeChristoph Wurst2020-03-094-6/+13
|\ \ \ | | | | | | | | Fix mismatching docblock return types
| * | | Fix mismatching docblock return typesChristoph Wurst2020-03-064-6/+13
| | |/ | |/| | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / | Fix mismatching doc block parameter typesChristoph Wurst2020-03-065-5/+6
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #19743 from nextcloud/cache-updater-storage-mtime-falseRoeland Jago Douma2020-03-051-6/+9
|\ \ | | | | | | dont try to update storage mtime if we can't get the mtime
| * | dont try to update storage mtime if we can't get the mtimeRobin Appelman2020-03-021-6/+9
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #19742 from nextcloud/bug/19740/add-msg-for-exceptionblizzz2020-03-021-2/+2
|\ \ | |/ |/| Add message for DoesNotExistException
| * Add message for DoesNotExistExceptionDaniel Kesselberg2020-03-021-2/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | allow writing content directly when creating new SimpleFileRobin Appelman2020-02-282-4/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Create SimpleFile only when writing the contentRobin Appelman2020-02-285-7/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of first creating an empty file and then writing the content. This solves the overhead of creating an empty file with the common pattern: ```php $file = $simpleFilder->newFile('foo.txt'); $file->putContent('bar.txt'); ``` roughly halving the number of storage and database operations that need to be done when creating a `SimpleFile`. This is not automatically done with `File` because that has a more complex api which I'm more hesitant to touch. Instead the `Folder::newFile` api has been extended to accept the content for the new file. In my local testing, the overhead of first creating an empty file took about 20% of the time for preview generation Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #19670 from nextcloud/techdebt/noid/allow-to-remove-listenersChristoph Wurst2020-02-271-0/+5
|\ \ | |/ |/| Allow to remove listeners
| * Allow to remove listenersJoas Schilling2020-02-271-0/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19433 from nextcloud/bugfix/noid/fix-installing-talkblizzz2020-02-261-2/+13
|\ \ | |/ |/| Fix installing Talk due to hardcoded route
| * Hardcode Talk namespace to fix install due to global routeJoas Schilling2020-02-141-2/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19528 from ↵Roeland Jago Douma2020-02-221-2/+4
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/remove-user-root-from-error-message Strip of users home path from share api message
| * | Strip of users home path from share api messageJoas Schilling2020-02-201-2/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #18227 from ↵Christoph Wurst2020-02-213-2/+47
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bug/17947/set-transaction-isolation-connect Add event subscriber for transaction isolation level
| * | | Add event subscriber for transaction isolation levelDaniel Kesselberg2020-02-213-2/+47
| |/ / | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #19412 from nextcloud/fix/19404/make-favorite-publicChristoph Wurst2020-02-211-10/+9
|\ \ \ | |/ / |/| | Make TAG_FAVORITE public
| * | Make TAG_FAVORITE publicDaniel Kesselberg2020-02-121-10/+9
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | when we receive intentional empty whats new info, do not try to show itArthur Schiwon2020-02-131-1/+5
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Allow to overwrite the path on the cache eventJoas Schilling2020-02-131-0/+8
| |/ |/| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19424 from nextcloud/bugfix/noid/dont-create-invalid-usersRoeland Jago Douma2020-02-121-1/+1
|\ \ | | | | | | Don't create invalid users
| * | Don't create invalid usersJoas Schilling2020-02-121-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | disable timeout on app install via cliArthur Schiwon2020-02-122-7/+15
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Allow to serve static mp4 directlyJulius Härtl2020-02-121-1/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Allow to serve static webm directlyRoeland Jago Douma2020-02-121-1/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>