aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* ensure mounts are scanned during testsRobin Appelman2020-07-092-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use the correct mountpoint to calculateRoeland Jago Douma2020-07-091-0/+9
| | | | | | | If we use the owners mount point this results in null. And then the rest of the checks get called with null. Which doesn't work. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #21574 from nextcloud/backport/21379/stable19Morris Jobke2020-07-062-9/+216
|\ | | | | [stable19] Fix share permission checkboxes enabled when permissions can not be set
| * Add acceptance test for disabling create permission after sharingDaniel Calviño Sánchez2020-06-241-0/+43
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Add acceptance test for sharing a folder without create permissionDaniel Calviño Sánchez2020-06-242-0/+75
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Add acceptance test for sharing a file without edit permissionDaniel Calviño Sánchez2020-06-242-0/+75
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Generalize functions to get locators for share permission checkboxesDaniel Calviño Sánchez2020-06-241-9/+23
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Revert "[stable19] Do not read certificate bundle from data dir by default"Roeland Jago Douma2020-07-031-2/+3
| |
* | Increase timeout of the appstore requestsJoas Schilling2020-07-021-7/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix IPv6 remote addresses from X_FORWARDED_FOR headers before validatingJoas Schilling2020-07-021-0/+28
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #21538 from nextcloud/backport/21452/stable19Joas Schilling2020-07-011-37/+47
|\ \ | |/ |/| [stable19] Fix autocomplete for LDAP with `shareapi_only_share_with_group_members` on
| * Fix unit testsJoas Schilling2020-06-231-37/+47
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix language in share notes email for usersJoas Schilling2020-06-231-12/+29
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow to specify the cookie type for appframework responsesRoeland Jago Douma2020-06-221-6/+13
|/ | | | | | | | | In general it is good to set them to Lax. But also to give devs more control over them is not a bad thing. Helps with #21474 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* acceptence tests shall specify which branch to pick when cloning appsArthur Schiwon2020-06-191-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Clean up auth tokens when user is deletedChristoph Wurst2020-06-161-0/+117
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Avoid duplicate matches in wide and exact resultsJulius Härtl2020-06-151-10/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Prevent harder to share your rootJoas Schilling2020-06-041-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix disabling send password by Talk without new password in mail sharesDaniel Calviño Sánchez2020-05-291-5/+79
| | | | | | | | | | | | | | | | | | When "send password by Talk" was disabled in a mail share it was possible to keep the same password as before, as it does not pose any security issue (unlike keeping it when "send password by Talk" is enabled, as in that case the password was already disclosed by mail). However, if a mail share is updated but the password is not set again only the hashed password will be available. In that case it would not make sense to send the password by mail, so now the password must be changed when disabling "send password by Talk". Note that, even if explicitly setting the same password again along with the "send password by Talk" property would work, this was also prevented for simplicity. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix enabling send password by Talk with same password in mail sharesDaniel Calviño Sánchez2020-05-291-4/+96
| | | | | | | | | | | | | When "send password by Talk" is enabled in a mail share a new password must be also set. However, when the passwords of the original and the new share were compared it was not taken into account that the original password is now hashed, while the new one is not (unless no new password was sent, in which case the password of the original share was set in the new share by the controller, but that was already prevented due to both passwords being literally the same), so it was possible to set the same password again. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix enabling send password by Talk with empty password in link sharesDaniel Calviño Sánchez2020-05-291-0/+69
| | | | | | | When "send password by Talk" is enabled in a link share now a non empty password is enforced. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* use the loginname to verify the old password in user password changesArthur Schiwon2020-05-261-5/+27
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Do not read certificate bundle from data dir by defaultMorris Jobke2020-05-251-3/+2
| | | | | | | | | | | Before the resources/config/ca-bundle.crt was only used when the list of custom certificates was empty and the instance was not installed. But it should also be used when the list is empty and the instance is installed. This is inverting the logic to stop if the instance is not installed to use the default bundle. And it also does this when the list is empty. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Compress the appstore requests by defaultMorris Jobke2020-05-201-5/+42
| | | | | | In test it reduced the transfered data from 5 MB to 2 MB. This should reduce the load on the appstore significantly. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cache appstore requests for 60 instead of 5 minutesMorris Jobke2020-05-201-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix http cache testClement Wong2020-05-131-1/+1
| | | | Signed-off-by: Clement Wong <git@clement.hk>
* Use random_bytesRoeland Jago Douma2020-05-111-4/+11
| | | | | | | Since we don't care if it is human readbale. The code is backwards compatible with the old format. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #20722 from nextcloud/enh/20693/etag-capabilitiesMorris Jobke2020-05-041-0/+2
|\ | | | | Set etag for capabilities endpoint
| * Set etag for capabilities endpointDaniel Kesselberg2020-04-291-0/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Update education bundleRoeland Jago Douma2020-05-011-2/+0
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #20380 from nextcloud/design/notification-mailsRoeland Jago Douma2020-05-013-138/+117
|\ \ | | | | | | Fix design and layout of notification mails
| * | Fix notification mail testsJan-Christoph Borchardt2020-05-013-138/+117
| |/ | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Fix getDirectoryContent implementation for Jail wrapperRobin Appelman2020-04-301-0/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix Argon2 options checksMichaIng2020-04-301-0/+5
|/ | | | | | | | | | | The minimum for memory cost is 8 KiB per thread. Threads must be checked and set first to allow checking against the correct memory cost mimimum. Options are now applied the following way: - If config.php contains the setting with an integer higher or equal to the minimum, it is applied. - If config.php contains the setting with an integer lower than the minimum, the minimum is applied. - If config.php does not contain the setting or with no integer value, the PHP default is applied. Signed-off-by: MichaIng <micha@dietpi.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshareMorris Jobke2020-04-271-18/+0
|\ | | | | Fix resharing of federated shares that were created out of links
| * Remove unneeded test since links have resharing permissions by defaultJulius Härtl2020-04-211-18/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #19514 from sndrr/already-enabled-appsMorris Jobke2020-04-271-0/+1
|\ \ | | | | | | Already enabled apps
| * | Updated test to check for already enabled appsSander Ruitenbeek2020-04-241-0/+1
| | | | | | | | | | | | Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
* | | Merge pull request #19084 from nextcloud/bug/13556/wrong-paths-for-svgMorris Jobke2020-04-274-4/+92
|\ \ \ | | | | | | | | Make it possible to resolve svg's outside \OC::$SERVERROOT
| * | | Add test to ensure that symlinked apps_paths are not resolvedDaniel Kesselberg2020-04-241-0/+29
| | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | | Make it possible to resolve svg for apps_paths outside the document rootDaniel Kesselberg2020-04-243-4/+63
| | | | | | | | | | | | | | | | | | | | | | | | Previous implementation assumes the app path is always a child \OC::$SERVERROOT. That's not always true. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | Allow specifying a default expiration dateRoeland Jago Douma2020-04-241-0/+1
| |/ / |/| | | | | | | | | | | | | | This overrides the max expiration date. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Do not create remember me cookieJulius Härtl2020-04-231-1/+24
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix new routing in settings etcRoeland Jago Douma2020-04-221-2/+2
| | | | | | | | | | | | | | | | | | Also prefix resources Unify the prefix handling Handle urls with and without slash Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #20114 from ↵Roeland Jago Douma2020-04-211-87/+50
|\ \ | |/ |/| | | | | nextcloud/techdebt/noid/allow-some-apps-to-have-root-urls Allow some apps to have root URLs in their own routing file
| * Extend tests for root urlJoas Schilling2020-04-181-87/+50
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Move to subfolders for preview filesRoeland Jago Douma2020-04-191-26/+70
|/ | | | | | | | | | | Else the number of files can grow very large very quickly in the preview folder. Esp on large systems. This generates the md5 of the fileid. And then creates folders of the first 7 charts. In that folder is then a folder with the fileid. And inside there are the previews. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix mailer testRoeland Jago Douma2020-04-171-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #20447 from liamjack/fix/13287/welcome_emailJohn Molakvoæ2020-04-172-2/+2
|\ | | | | Increase max-height on button in welcome email template
| * Fix testsMorris Jobke2020-04-172-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>