aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1978 from nextcloud/remove-send-mail-optionMorris Jobke2016-11-021-40/+16
|\ | | | | Remove send mail option
| * remove 'send mail notification' option from sharing, replaced by ↵Bjoern Schiessle2016-11-021-40/+16
| | | | | | | | | | | | send-by-mail feature Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #1988 from nextcloud/silly-but-effective-testMorris Jobke2016-11-021-0/+68
|\ \ | | | | | | Add test for "languageCodes.php"
| * | Add test for "languageCodesTest.php"Lukas Reschke2016-11-021-0/+68
| | | | | | | | | | | | | | | | | | Arguably not the most awesome test but increases coverage and is an easy gain. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Merge pull request #1981 from nextcloud/multibucket-num-bucketsLukas Reschke2016-11-022-9/+13
|\ \ \ | | | | | | | | Allow setting a maximun number of buckets for multibucket
| * | | Allow setting a maximun number of buckets for multibucketRobin Appelman2016-11-022-9/+13
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Add testsLukas Reschke2016-11-022-0/+139
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | | Inject config and loggerJoas Schilling2016-11-022-7/+29
| |/ / |/| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #1347 from nextcloud/bring-back-remember-meMorris Jobke2016-11-025-174/+471
|\ \ \ | | | | | | | | fix remember me login
| * | | Add missing tests and fix PHPDocLukas Reschke2016-11-022-3/+160
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | inject ISecureRandom into user session and use injected config tooChristoph Wurst2016-11-021-49/+60
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | bring back remember-meChristoph Wurst2016-11-025-140/+269
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | * try to reuse the old session token for remember me login * decrypt/encrypt token password and set the session id accordingly * create remember-me cookies only if checkbox is checked and 2fa solved * adjust db token cleanup to store remembered tokens longer * adjust unit tests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #1940 from nextcloud/new-appstoreMichael Grosser2016-11-0215-1368/+1321
|\ \ \ | |/ / |/| | Use new appstore API
| * | Add tests for installer methodLukas Reschke2016-10-314-0/+522
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Proxy images through usercontent.apps.nextcloud.comLukas Reschke2016-10-311-14/+2
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Add update supportLukas Reschke2016-10-314-77/+279
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Use substr and explode instead of a regexLukas Reschke2016-10-311-0/+7
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Fix testsLukas Reschke2016-10-314-5/+12
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Use new appstore APILukas Reschke2016-10-318-1291/+518
| | | | | | | | | | | | | | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Merge pull request #1966 from nextcloud/fix-csrf-token-generationRoeland Jago Douma2016-11-022-4/+12
|\ \ \ | |_|/ |/| | Fix CSRF token generation / validation
| * | Fix CSRF token generation / validationLeon Klingele2016-11-022-4/+12
| | | | | | | | | | | | | | | | | | | | | Operate on raw bytes instead of base64-encoded strings. Issue was introduced in a977465 Signed-off-by: Leon Klingele <git@leonklingele.de>
* | | add method to check if a share provider for a given type is loadedBjoern Schiessle2016-11-011-0/+40
|/ / | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add defaultShareProvider & federatedshareprovider testsRoeland Jago Douma2016-11-011-0/+91
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add Manager unit testsRoeland Jago Douma2016-11-011-6/+77
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-311-0/+9
|/ | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* Fix more testsRoeland Jago Douma2016-10-283-143/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Proper DI of configRoeland Jago Douma2016-10-285-31/+61
| | | | | | * Fixed comments Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-282-1/+66
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Merge pull request #1800 from nextcloud/nextcloud-rich-object-stringsMorris Jobke2016-10-272-29/+74
|\ | | | | Nextcloud rich object strings
| * Allow rich object subjects for NotificationsJoas Schilling2016-10-201-29/+21
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add Rich Object Definitions and a validatorJoas Schilling2016-10-201-0/+53
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove internal share mail functionRoeland Jago Douma2016-10-261-48/+0
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1920 from ↵Roeland Jago Douma2016-10-261-0/+14
|\ \ | | | | | | | | | | | | nextcloud/legacy-pages-should-also-receive-the-nonce Add nonce also to legacy CSP
| * | Identify Chromium as ChromeJoas Schilling2016-10-261-0/+14
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #1738 from ↵Morris Jobke2016-10-263-6/+133
|\ \ \ | |/ / |/| | | | | | | | nextcloud/comments-provide-displaynames-with-mentions comment mentions: show displayname not uid
| * | add missing methods to test fake managerArthur Schiwon2016-10-201-0/+4
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | resolve displayname via manager and registerable resolversArthur Schiwon2016-10-191-0/+78
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-6/+51
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Move browserSupportsCspV3 to CSPNonceManagerRoeland Jago Douma2016-10-252-6/+13
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #1878 from nextcloud/downstream-25936Morris Jobke2016-10-252-7/+8
|\ \ \ | | | | | | | | Adjust unit tests to upstream
| * | | [9.2] Add missing unit tests (#25936)Thomas Müller2016-10-242-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adjust unit test execution after folder rename * Adjust login controller tests to match current behavior * Fix broken unit tests
* | | | Merge pull request #1871 from nextcloud/use-csp-noncesMorris Jobke2016-10-255-1/+156
|\ \ \ \ | | | | | | | | | | Use CSP nonces
| * | | | Add ContentSecurityPolicyNonceManagerLukas Reschke2016-10-241-0/+57
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | | Add support for CSP noncesLukas Reschke2016-10-244-1/+99
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CSP nonces are a feature available with CSP v2. Basically instead of saying "JS resources from the same domain are ok to be served" we now say "Ressources from everywhere are allowed as long as they add a `nonce` attribute to the script tag with the right nonce. At the moment the nonce is basically just a `<?php p(base64_encode($_['requesttoken'])) ?>`, we have to decode the requesttoken since `:` is not an allowed value in the nonce. So if somebody does on their own include JS files (instead of using the `addScript` public API, they now must also include that attribute.) IE does currently not implement CSP v2, thus there is a whitelist included that delivers the new CSP v2 policy to newer browsers. Check http://caniuse.com/#feat=contentsecuritypolicy2 for the current browser support list. An alternative approach would be to just add `'unsafe-inline'` as well as `'unsafe-inline'` is ignored by CSPv2 when a nonce is set. But this would make this security feature unusable at all in IE. Not worth it at the moment IMO. Implementing this offers the following advantages: 1. **Security:** As we host resources from the same domain by design we don't have to worry about 'self' anymore being in the whitelist 2. **Performance:** We can move oc.js again to inline JS. This makes the loading way quicker as we don't have to load on every load of a new web page a blocking dynamically non-cached JavaScript file. If you want to toy with CSP see also https://csp-evaluator.withgoogle.com/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | | Merge pull request #1884 from nextcloud/downstream-26292Lukas Reschke2016-10-251-34/+43
|\ \ \ \ | | | | | | | | | | Fix logClientIn for non-existing users (#26292)
| * | | | Fix and cleanup SessionTestRoeland Jago Douma2016-10-251-43/+26
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | | Fix logClientIn for non-existing users (#26292)Vincent Petry2016-10-251-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for two factor enforcement would return true for non-existing users. This fix makes it return false in order to be able to perform the regular login which will then fail and return false. This prevents throwing PasswordLoginForbidden for non-existing users.
* | | | | Merge pull request #1452 from nextcloud/appconfig-endpointJoas Schilling2016-10-252-3/+20
|\ \ \ \ \ | |/ / / / |/| | | | Appconfig endpoint
| * | | | Make AppConfig part of the public APIJoas Schilling2016-10-212-3/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | App dependencies are now analysed on app enable as well - not only on app ↵Thomas Müller2016-10-241-26/+30
| |/ / / |/| | | | | | | | | | | install.