aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-1/+29
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix unit testRoeland Jago Douma2021-04-1614-19/+18
| | | | | | | | | * Fix namespace * Fix test Was broken after https://github.com/nextcloud/server/pull/26529 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Separate settings for remote share expirationVincent Petry2021-04-151-70/+207
| | | | | | | Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #26266 from nextcloud/future-proof-networkingRoeland Jago Douma2021-04-124-42/+328
|\ | | | | Improve networking checks
| * Adjust testLukas Reschke2021-04-061-7/+14
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * Improve networking checksLukas Reschke2021-04-064-42/+321
| | | | | | | | | | | | Whilst we currently state that SSRF is generally outside of our threat model, this is something where we should invest to improve this. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Increase subnet matcherLukas Reschke2021-04-071-2/+10
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #24966 from nextcloud/jknockaert-patch-1Lukas Reschke2021-04-061-4/+14
|\ \ | |/ |/| avoid fread on directories and unencrypted files
| * Update EncryptionTest.phpJasper Knockaert2021-01-051-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-01-051-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-01-051-1/+7
| |
* | Merge pull request #24055 from ↵Morris Jobke2021-04-011-20/+61
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/enfore-no-notnull-for-boolean-to-store-false Enforce no notnull for boolean to store false
| * | Rename the method to match what it doesJoas Schilling2021-03-311-22/+22
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Don't allow Notnull for boolean columnsJoas Schilling2021-03-311-0/+41
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Get the parent directory before creating a file from a templateJulius Härtl2021-04-011-6/+16
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #25961 from nextcloud/enh/events/2fa_providerkesselb2021-03-301-0/+7
|\ \ | | | | | | Add real events for enabled 2fa providers for users
| * | Add real events for enabled 2fa providers for usersRoeland Jago Douma2021-03-221-0/+7
| | | | | | | | | | | | | | | | | | | | | * Shiny new events * Listener to still emit the old event Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #25280 from nextcloud/explicit-file-permissionsRoeland Jago Douma2021-03-301-3/+34
|\ \ \ | | | | | | | | Set umask before operations that create local files
| * | | Set umask before operations that create local filesRobin Appelman2021-03-231-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | gracefully handle deleteFromSelf when share is already goneArthur Schiwon2021-03-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | - handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Merge pull request #26353 from ↵Joas Schilling2021-03-291-3/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/make-testcase-class-compatible-with-phpunit-9.5 Make Testcase class compatible with phpunit-9.5
| * | | | Make Testcase class compatible with phpunit-9.5Joas Schilling2021-03-291-3/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Add known user check in avatar when v2-private scopeVincent Petry2021-03-261-22/+89
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-261-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When avatar scope is private, the PlaceholderAvatar is used to deliver a placeholder avatar based on the user's initials. This was implemented as a separate class for now to avoid messing with the existing UserAvatar implementation and its generated vs non-generated logic. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Add property scope tests for AccountManagerVincent Petry2021-03-261-0/+123
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Map old account scope properties to new namesVincent Petry2021-03-263-34/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Add new v2-private account scopeVincent Petry2021-03-261-2/+59
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new v2-private account manager scope that restricts the scope further by excluding public link access. Avatars with v2-private account scope are now showing the guest avatar instead of the real avatar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* / / / Cleanup unneeded code around database.xmlMorris Jobke2021-03-2417-2823/+29
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #26198 from nextcloud/unified-search-nodeMorris Jobke2021-03-221-108/+202
|\ \ \ | |/ / |/| | Handle limit offset and sorting in files search
| * | handle ordering in folder searchRobin Appelman2021-03-191-20/+34
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | folder filtering in sqlRobin Appelman2021-03-191-1/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | cleanup fileinfo creationRobin Appelman2021-03-191-60/+30
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | handle limit and offset in folder file searchRobin Appelman2021-03-181-41/+157
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | only require user to be set in a query that handles tagsRobin Appelman2021-03-181-16/+11
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix sharebymail testsJohn Molakvoæ (skjnldsv)2021-03-221-64/+64
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-63/+79
| | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* | | Log and continue when failing to update encryption keys during for ↵Julius Härtl2021-03-191-13/+17
| | | | | | | | | | | | | | | | | | individual files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #23718 from nextcloud/already-shared-error-messageRoeland Jago Douma2021-03-191-4/+13
|\ \ \ | | | | | | | | expand 'path is already shared' error message
| * | | expand 'path is already shared' error messageRobin Appelman2021-03-151-4/+13
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #26200 from ↵Vincent Petry2021-03-191-40/+40
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/bugfix/26197/fix-expiration-validation-confusion Update user share must use correct expiration validation
| * | | | Update user share must use correct expiration validationVincent Petry2021-03-181-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating a user or group share now uses the correct method for the validation of the expiration date. Instead of using the one from links it uses the one for internal shares. To avoid future confusion, the method "validateExpirationDate" has been renamed to "validateExpirationDateLink". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | log full expection during repair stepRobin Appelman2021-03-181-1/+2
|/ / / / | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Skip db migration simulation for core schema changesJulius Härtl2021-03-171-53/+0
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #26161 from ↵Joas Schilling2021-03-171-13/+63
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | nextcloud/bugfix/noid/improve-matching-of-phonebook-searches Improve search results when only phonebook-matches can we autocompleted
| * | | Also limit to user group in case enumeration is enabled for groups and ↵Joas Schilling2021-03-171-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | phonenumbers Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Improve search results when only phonebook-matches can we autocompletedJoas Schilling2021-03-171-8/+47
| |/ / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-152-3/+86
|\ \ \ | |/ / |/| | do cachejail search filtering in sql
| * | adjust testsRobin Appelman2021-01-261-3/+16
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix search in nested jailsRobin Appelman2021-01-261-0/+18
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix cachjail searching for rootRobin Appelman2021-01-261-2/+17
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>