summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-2732-42/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-2532-42/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-26127-655/+655
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-254-4/+4
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20145 from ↵blizzz2020-03-251-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/generated-avatars-and-nophoto-cache Fix generated avatars and nophoto cache files
| * Fix generated avatars and nophoto cache filesJoas Schilling2020-03-241-1/+1
| | | | | | | | | | | | | | | | Since nextcloud/server#19493 newFile() by default does not write the file anymore. Setting an empty string as content will make it write the file immediate, without having to call putContent() afterwards. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #14722 from tacruc/GpgMailerHooksRoeland Jago Douma2020-03-253-6/+28
|\ \ | | | | | | Add Mailer events
| * | Added Hook before Message is sendArne Hamann2020-03-243-6/+28
| |/ | | | | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* | Merge pull request #19782 from nextcloud/quota-wrapper-include-externalRoeland Jago Douma2020-03-241-9/+18
|\ \ | | | | | | Use global used space in quota wrappen when external storage is included
| * | Use global used space in quota wrappen when external storage is includedRobin Appelman2020-03-041-9/+18
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #20127 from nextcloud/bugfix/noid/check-user-on-remote-wipeRoeland Jago Douma2020-03-241-7/+3
|\ \ \ | |_|/ |/| | Check the user on remote wipe
| * | Check the user on remote wipeJoas Schilling2020-03-161-7/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Remove admin_notifications since it is obsolete since Nextcloud 14Julius Härtl2020-03-241-1/+0
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | 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