summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12071 from nextcloud/addressbook-uid-check-migrationRoeland Jago Douma2018-11-021-0/+121
|\ | | | | Addressbook uid check migration
| * Merge branch 'addressbook-uid-check-migration' of ↵John Molakvoæ (skjnldsv)2018-11-018-35/+228
| |\ | | | | | | | | | | | | | | | https://github.com/nextcloud/server into addressbook-uid-check-migration Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| | * TestsJohn Molakvoæ (skjnldsv)2018-11-011-0/+121
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fix phpunitJohn Molakvoæ (skjnldsv)2018-11-011-20/+20
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | TestsJohn Molakvoæ (skjnldsv)2018-10-301-0/+121
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #11404 from flokli/sendmail-pathRoeland Jago Douma2018-11-021-1/+7
|\ \ \ | | | | | | | | Mailer: discover sendmail path instead of hardcoding it to /usr/sbin/sendmail
| * | | Fallback to default path is sendmail can't be foundRoeland Jago Douma2018-11-021-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the sendmail binary can't be found at all we fallback to the default path. It most likely is not there but then at least a proper error message pops up. Updated the tests to also properly pass. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #11875 from ↵Roeland Jago Douma2018-11-021-2/+59
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/add-support-for-sending-the-password-for-a-link-share-by-nextcloud-talk Add support for sending the password for a link share by Nextcloud Talk
| * | | | Store "sendPasswordByTalk" property of link shares in the databaseDaniel Calviño Sánchez2018-11-021-0/+9
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Fix update share testsDaniel Calviño Sánchez2018-11-021-2/+50
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The update share tests only checked that the share returned by "update()" had the expected values. However, as "update()" returns the same share that was given as a parameter the tests were not really verifying that the values were updated in the database. In a similar way, the test that checked that a password was removed did not set a password first, so even if the database returned null it could be simply returning the default value for the share; a password must be set first to ensure that it is removed. Besides that, a typo was fixed too that made the checks on the original share instead of on the one returned by "update()"; right now it is the same share, so the change makes no difference, but it is how the check should be done anyway. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* / / / Cleanup some unused sharing methods from the old sharing codeMorris Jobke2018-11-021-1/+6
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | / Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-8/+1
| |/ |/| | | | | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix writeStream for jail wrapperRobin Appelman2018-10-311-0/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | extend storage api to allow directly writing a stream to storageRobin Appelman2018-10-311-0/+49
| | | | | | | | | | | | | | | | | | | | | | this removes the need for temporary storages with some external storage backends. The new method is added to a separate interface to maintain compatibility with storage backends implementing the storage interface directly (without inheriting common) Currently the interface is implemented for objectstorage based storages and local storage and used by webdav uploads Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only generate previews in powers of 4 and set minRoeland Jago Douma2018-10-311-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we'd round up all preview request to their nearest power of two. This resulted still in a lot of possible images. Generating a lot of server load and taking up a lot of space. This moves it to previews to be powers of 4: 64, 256, 1024 and 4096 Also the first two powers are always skipped (4, 16) as it doesn't make sense to generate previews for that. We cache preview pretty agressively and I feel this is a better tradeoff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move ExpiredTokenException to the correct namespaceRoeland Jago Douma2018-10-302-5/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #11899 from nextcloud/enhancement/noid/sharing-consolidationRoeland Jago Douma2018-10-302-21/+145
|\ \ | |/ |/| Sharing user consolidation
| * Fix injection to get the user idJulius Härtl2018-10-301-1/+11
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Add uuid/name entry to Remote/MailPlugin testsJulius Härtl2018-10-302-20/+104
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Make enhancing entries with type property optionalJulius Härtl2018-10-301-6/+30
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Filter out local users from address book remote searchesJulius Härtl2018-10-301-1/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #12036 from olivermg/masterMorris Jobke2018-10-301-0/+115
|\ \ | |/ |/| Add capability of specifying "trusted_proxies" entries in CIDR notation (IPv4)
| * Adding handling of CIDR notation to trusted_proxies for IPv4Oliver Wegner2018-10-301-0/+115
| | | | | | | | Signed-off-by: Oliver Wegner <void1976@gmail.com>
* | Fix testsJulius Härtl2018-10-291-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Keep list of icons in a separate file for use in the accessibility appJulius Härtl2018-10-251-7/+7
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-241-10/+31
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #11914 from nextcloud/csp/report-uriMorris Jobke2018-10-231-0/+15
|\ | | | | Add report-uri to CSP
| * Add report-uri to CSPRoeland Jago Douma2018-10-211-0/+15
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | fixup! Fix comment and cap-heightJohn Molakvoæ (skjnldsv)2018-10-231-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix comment and cap-heightJohn Molakvoæ (skjnldsv)2018-10-231-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Use correct typeface for avatar generatorJan-Christoph Borchardt2018-10-231-3/+3
|/ | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Merge pull request #11711 from nextcloud/feature/backgroundjobs_ocpChristoph Wurst2018-10-192-57/+108
|\ | | | | Add proper backgroundjobs to OCP
| * fixup! fixup! Add backgroundjobs to OCPRoeland Jago Douma2018-10-092-57/+108
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Do not try to contact lookup server without internet connection or URLArthur Schiwon2018-10-181-21/+78
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #11830 from ↵Morris Jobke2018-10-161-0/+33
|\ \ | | | | | | | | | | | | nextcloud/bugfix/9326/make_sure_usermanager_getByEmail_only_returns_IUser filter null values for UserManager::getByEmail
| * | filter null values for UserManager::getByEmailGeorg Ehrke2018-10-151-0/+33
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Use IAccountManager constantsJulius Härtl2018-10-153-68/+67
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add tests for new account api classesJulius Härtl2018-10-153-0/+253
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #11714 from nextcloud/lookupserver-and-global-scaleBjörn Schießle2018-10-151-2/+272
|\ \ \ | | | | | | | | always query the lookup server in a global scale setup
| * | | add more testsBjoern Schiessle2018-10-121-0/+231
| | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * | | some small fixes and improvementsBjoern Schiessle2018-10-101-1/+11
| | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * | | adjust testsBjoern Schiessle2018-10-091-2/+31
| | | | | | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | | Make it possible to enforce mandatory 2FA for groupsChristoph Wurst2018-10-153-34/+216
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Disallow unsafe-eval by defaultRoeland Jago Douma2018-10-145-60/+69
| |/ / |/| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Move normalizePath to regexes instead of loopingRoeland Jago Douma2018-10-101-61/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is IMO a bit more readable and it seems to make the code faster. Tested it on the company instance where there are over 3k calls to this function. It shaves off around 10ms. The advantage here is that the pattern gets optimized by php itsel and cached. Also looking for all patterns at the same time and especially no longer looping for /./ patterns should save time. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Add function to generate urls for OCS routesRoeland Jago Douma2018-10-091-0/+18
| |/ |/| | | | | | | | | | | | | | | | | fixes #11617 The OCS routes are only absolute for now as they are often exposed to the outside anyway and are on a different endpoint than index.php in anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove HHVM checkChristoph Wurst2018-10-091-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Deprecate unused, private OC_Helper::linkToPublicMorris Jobke2018-10-081-38/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #10839 from nextcloud/bugfix/10212/use_class_implementationMorris Jobke2018-10-082-16/+74
|\ \ | | | | | | adjust Calendar resource / room interfaces to use class implementation
| * | RoomManager/ResourceManager: Inject IServerContainer instead of using OC ServerGeorg Ehrke2018-10-082-38/+60
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>