summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Increase timeout of the appstore requestsJoas Schilling2020-06-121-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove dropped " ON " when join has no conditionJoas Schilling2020-06-081-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Prevent harder to share your rootJoas Schilling2020-06-031-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #21143 from ↵Roeland Jago Douma2020-05-291-9/+244
|\ | | | | | | | | nextcloud/fix-password-changes-in-link-and-mail-shares Fix password changes in link and mail shares
| * 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-281-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-281-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>
* | Move the systemtags to core/srcRoeland Jago Douma2020-05-281-0/+1
|/ | | | | | | * Move to the handlebar loader from webpack Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-38/+97
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Move core/js/files to webpackRoeland Jago Douma2020-05-221-0/+2
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Merge pull request #20814 from nextcloud/group-id-onlyRoeland Jago Douma2020-05-211-11/+9
|\ | | | | dont get the group details if we only ask for the id
| * dont get the group details if we only ask for the idRobin Appelman2020-05-071-11/+9
| | | | | | | | | | | | | | currenty when getting the groups for a user, the full group object is always created (and cached) even if only the groupid is required Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Revert "Compress the appstore requests by default"Morris Jobke2020-05-201-42/+5
| | | | | | | | | | | | This reverts commit 6ffde128ad17a1ebe38f8d18b21a37d01b47c46b. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Allow gzip encoded requests by defaultMorris Jobke2020-05-201-3/+7
| | | | | | | | 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>
* | l10n: Add "The" before "Following"Valdnet2020-05-151-4/+4
| |
* | Merge pull request #20939 from nextcloud/enh/middleware/not_modifiedRoeland Jago Douma2020-05-133-41/+107
|\ \ | | | | | | Move not modified check to the middleware
| * | Move the notmodified check to middleware where it belongsRoeland Jago Douma2020-05-133-41/+107
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #20897 from nextcloud/bugfix/httpcacheRoeland Jago Douma2020-05-131-1/+1
|\ \ \ | |/ / |/| | Proxy server could cache http response when it is not private
| * | Fix http cache testClement Wong2020-05-121-1/+1
| | | | | | | | | | | | Signed-off-by: Clement Wong <git@clement.hk>
* | | Merge pull request #20270 from nextcloud/enh/appframework/gzipRoeland Jago Douma2020-05-121-0/+163
|\ \ \ | | | | | | | | Add AppFramework compression middleware to gzip responses
| * | | Add AppFramework GZip middleware to gzip responsesRoeland Jago Douma2020-05-121-0/+163
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | 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>
* | / Adjust tests to only return group IDsMorris Jobke2020-05-081-32/+15
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | 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>