summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make renewSessionToken return the new tokenRoeland Jago Douma2019-10-091-10/+9
| | | | | | | Avoids directly getting the token again. We just inserted it so it and have all the info. So that query is just a waste. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make TrustedDomainHelper case insensitiveJohannes Koenig2019-10-061-0/+5
| | | | Signed-off-by: Johannes Koenig <mail@jokoenig.de>
* Merge pull request #17001 from nextcloud/fix/noid/addressbookchanges-avatarblizzz2019-10-011-2/+1
|\ | | | | reduce adressbook change events and handling
| * adjust test expectationsArthur Schiwon2019-09-041-2/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Move settings to an appChristoph Wurst2019-09-2812-771/+20
| | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Merge pull request #17264 from nextcloud/move-from-storage-wrappersRoeland Jago Douma2019-09-261-20/+97
|\ \ | | | | | | handle moveFromStorage within the same storage even when storage wrap…
| * | handle moveFromStorage within the same storage even when storage wrappers ↵Robin Appelman2019-09-251-20/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are applied to the source storage the target storage doesn't need additional handling for wrappers as the wrappers implementation of moveFromStorage already deals with that Any storage based on local storage isn't affected by this as local storage already has it's own way of handling with this Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #17262 from nextcloud/objectstore-remove-cache-on-deleteRoeland Jago Douma2019-09-262-0/+79
|\ \ \ | | | | | | | | dont delete cache entries if deleting an object from object store failed
| * | | dont delete cache entries if deleting an object from object store failedRobin Appelman2019-09-252-0/+79
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Use the actual password to update the tokensRoeland Jago Douma2019-09-181-2/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fixed the SecurityTest errorGreta Doci2019-09-151-0/+7
| | | | | | | | | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | | Harden identifyproof openssl codeRoeland Jago Douma2019-09-141-7/+14
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Use Symfony's new contract Event class instead of the deprecated oneChristoph Wurst2019-09-121-8/+8
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #16682 from nextcloud/enh/12790/workflow-backendRoeland Jago Douma2019-09-111-23/+66
|\ \ \ | | | | | | | | workflow overhaul
| * | | adapt file hooks test to eventdispatcher utilizationArthur Schiwon2019-09-091-23/+66
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Split personal security settings in codeRoeland Jago Douma2019-09-102-72/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | Instead of one big monolitic sections this is the first step in breaking down the settings. This should make is easiet to see what does what. As well as nicely splitting up the sections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #16836 from nextcloud/fix/16724/smb-availabilityRoeland Jago Douma2019-09-091-41/+53
|\ \ \ | |/ / |/| | Fix SMB availability status + higher delay on auth issues
| * | adjust testsArthur Schiwon2019-08-261-41/+53
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #17006 from nextcloud/querybuilder-max-minRoeland Jago Douma2019-09-071-0/+78
|\ \ \ | | | | | | | | add MAX and MIN to functionbuilder
| * | | add MAX and MIN to functionbuilderRobin Appelman2019-09-061-0/+78
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | / Log/FileTest does not require the DBRoeland Jago Douma2019-09-041-2/+0
| |/ |/| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add default timeout to expected request optionsDaniel Kesselberg2019-09-031-34/+19
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | SessionMiddleware: declare session propertyRoeland Jago Douma2019-08-281-12/+4
| | | | | | | | | | | | | | * Remove request since we don't useit * Update tests as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16865 from nextcloud/bugfix/noid/5-min-cronRoeland Jago Douma2019-08-261-23/+2
|\ \ | | | | | | Cron should run every 5 mins
| * | Cleanup the Settings classJoas Schilling2019-08-261-23/+2
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Fix report of phpstan in LimiterRoeland Jago Douma2019-08-191-8/+0
|/ | | | | | | | * unneeded arguments to constructor * added return types * let automatic DI do its work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16721 from nextcloud/fix/16644Roeland Jago Douma2019-08-111-2/+12
|\ | | | | Correctly handle emtpy string in proxyuserpwd config
| * Correctly handle emtpy string in proxyuserpwd configScott Shambarger2019-08-111-2/+12
| | | | | | | | | | | | | | | | | | | | As documented, the default value for config value proxyuserpwd is ''. However, that value results in the error: "cURL error 5: Unsupported proxy syntax in '@'". This patch handles the values of '' and null (the default in the code) the same for config values proxyuserpwd and proxy. Signed-off-by: Scott Shambarger <devel@shambarger.net>
* | Add testsRoeland Jago Douma2019-08-105-0/+492
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add feature policy headerRoeland Jago Douma2019-08-103-1/+4
|/ | | | | | | This adds the events and the classes to modify the feature policy. It also adds a default restricted feature policy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16592 from nextcloud/bugfix/noid/federated-reshareRoeland Jago Douma2019-08-011-0/+33
|\ | | | | Fix permission check on incoming federated shares
| * Fix permission check on incoming federated sharesJulius Härtl2019-07-311-0/+33
| | | | | | | | | | | | | | | | Since federated shares have their permissions set on the node, we do not need to check for parent share permissions. Otherwise reshares of incoming federated have no permission variable defined and creating them will fail Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update CSP test cases to handle the new form-actionRoeland Jago Douma2019-07-312-60/+64
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16594 from ↵Joas Schilling2019-07-301-29/+0
|\ | | | | | | | | nextcloud/tech-debt/noid/remove-unused-checkPasswordProtectedShare Remove unused OC\Share\Share::checkPasswordProtectedShare
| * Remove unused OC\Share\Share::checkPasswordProtectedShareMorris Jobke2019-07-291-29/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #16579 from nextcloud/enh/PostLoginEventRoeland Jago Douma2019-07-301-44/+71
|\ \ | | | | | | Add proper PostLoginEvent
| * | Update testsRoeland Jago Douma2019-07-291-44/+71
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16502 from nextcloud/bugfix/16474Morris Jobke2019-07-291-7/+14
|\ \ | |/ |/| Check the if we can actually access the storage cache for recent files
| * Check the if we can actually access the storage cache for recent filesJulius Härtl2019-07-241-7/+14
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Split up security middlewareRoeland Jago Douma2019-07-272-97/+149
| | | | | | | | | | | | | | | | | | | | With upcoming work for the feature policy header. Splitting this in smaller classes that just do 1 thing makes sense. I rather have a few small classes that are tiny and do 1 thing right (and we all understand what is going on) than have big ones. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16555 from nextcloud/fix/16529/mask-keysMorris Jobke2019-07-261-0/+2
|\ \ | | | | | | use a pattern to identify sensitive config keys
| * | treat sensitive config keys by patternArthur Schiwon2019-07-261-0/+2
| |/ | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* / Remove deprecated searchByTagRoeland Jago Douma2019-07-263-125/+0
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16492 from nextcloud/enh/exclude-rnd-filesMorris Jobke2019-07-231-0/+1
|\ | | | | Exclude .rnd files from integrity check
| * Exclude .rnd files from integrity checkDaniel Kesselberg2019-07-211-0/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add support for CSP_NONCE server variableSam Bull2019-07-181-2/+21
|/ | | | | | | Allow passing a nonce from the web server, allowing the possibility to enforce a strict CSP from the web server. Signed-off-by: Sam Bull <git@sambull.org> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #15040 from ↵Morris Jobke2019-07-176-425/+198
|\ | | | | | | | | nextcloud/feature/13980/push-for-deleted-notifications Notifications overhaul
| * Update unit testsJoas Schilling2019-07-161-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Keep the old method as a fallback and adjust the testsJoas Schilling2019-07-165-423/+196
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #16075 from nextcloud/bugfix/15823/app-restricted-groupsMorris Jobke2019-07-172-7/+49
|\ \ | |/ |/| Remove deleted groups from app restrictions fixes #15823