Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-06-02Escape filename in Content-DispositionLukas Reschke
We should escape all occurences of ' and \ in here. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-29429 template is NC20+ and fix getDelay for CLIJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-28Fix Nextcloud19 compatibilityJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27Fix ratelimit templateJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20Fix empty password check for mail sharesVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-12Increase subnet matcherLukas Reschke
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-01Merge pull request #26264 from nextcloud/unified-search-node-19Morris Jobke
[stable19] Handle limit offset and sorting in files search
2021-03-30gracefully handle deleteFromSelf when share is already goneArthur Schiwon
- handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-23handle ordering in folder searchRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23folder filtering in sqlRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23cleanup fileinfo creationRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23handle limit and offset in folder file searchRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23only require user to be set in a query that handles tagsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19Update user share must use correct expiration validationVincent Petry
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>
2021-03-17Merge pull request #26092 from nextcloud/backport/25722/stable19Morris Jobke
[stable19] apply object store copy optimization when 'cross storage' copy is wit…
2021-03-16adjust testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16fix search in nested jailsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16fix cachjail searching for rootRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16do cachejail search filtering in sqlRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12apply object store copy optimization when 'cross storage' copy is within the ↵Robin Appelman
same object store Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-18Send emails on password reset to the displaynameJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-17Merge pull request #25449 from nextcloud/backport/25393/stable19Roeland Jago Douma
[stable19] add repair job for unencoded group share uris
2021-02-17adjust applicable versionArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-17compatibility to Nc 19Arthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-17add missing changes from backport sourceArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-09Keep direct login active when redirectingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-02-02test: adjust expectationArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-02add repair job for unencoded calendarsArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-28Merge pull request #25121 from nextcloud/backport/25036/stable19blizzz
[stable19] respect DB restrictions on number of arguments in statements and queries
2021-01-18Add "composer.lock" for acceptance tests to gitDaniel Calviño Sánchez
As "composer.lock" was not versioned the dependencies had to be resolved everytime that the acceptance tests run, which took some precious time. Besides that the dependency versions were also tightened for better control. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-01-15DB: warn on parameter number constraintsArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-07Merge pull request #24593 from nextcloud/backport/23912/stable19Morris Jobke
[stable19] use in objectstore copy
2021-01-05Show unique displayname context in the sharing inputJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-07use in objectstore copyRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-12-03Fix vsprint parameterRoeland Jago Douma
%2\$; is not valid. On php7 this is just ignored but on php8 it gives an error. %2\$s; works. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-11-25set the display name of federated sharees from addressbookArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-11-16Add unit tests for "validateExpirationDateInternal"Daniel Calviño Sánchez
They were copied and adjusted as needed from the tests for "validateExpirationDate". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Add explicit time to test date for clarityDaniel Calviño Sánchez
This shows in a clearer way that the expected expiration date is the original one, but without time. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Add unit test for expiration date with date and with defaultDaniel Calviño Sánchez
This adds back what was being actually tested in the unit test fixed in the previous commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix unit test for expiration date without date but with defaultDaniel Calviño Sánchez
The expiration date was explicitly given, so it was not testing what it should. Moreover, "link_defaultExpDays" needs to be mapped when testing the default value (even if it will just fallback to the value of "shareapi_expire_after_n_days"). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix unit test method nameDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix unit test for verifying enforced valid expiration date.Daniel Calviño Sánchez
The enforced expiration date was not actually enabled, as for that "shareapi_default_expire_date" needs to be explicitly set to "yes". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix unit test for verifying enforced expire date too far in the futureDaniel Calviño Sánchez
The test should fail if no exception was thrown, and no exception was thrown due to a missing configuration parameter. However, the use of "addToAssertionCount(1)" made the test pass even if no exception was thrown and, therefore, to silently fail. Now the missing configuration parameter was added and the test will fail if the expected exception is not thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Add unit tests to enforce a relaxed default share expiration dateDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Remove wrong and misleading commentDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Remove extra spacesDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix typo in variable nameDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16Fix typos in method namesDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-11Apply code style fixesMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-11-11Add acceptance tests for reshares by link when resharing is disabledDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>