summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #33398 from nextcloud/enh/noid/sensitive-methods-appsVincent Petry2022-08-051-0/+16
|\ | | | | allow apps to specify methods carrying sensitive parameters
| * add unit test for ExceptionSerializerArthur Schiwon2022-07-291-0/+16
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #33435 from nextcloud/fix/remove-at-matchers-in-testsCôme Chilliet2022-08-043-56/+45
|\ \ | | | | | | Remove at matchers from tests in oauth2 and tests/Test
| * | Remove at matchers from tests in:Côme Chilliet2022-08-023-56/+45
| | | | | | | | | | | | | | | | | | | | | * apps/oauth2 * tests/Test/Repair/Owncloud Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Support specifying IPv6 proxies in CIDR notationSimon Leiner2022-08-021-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, it was not possible to use CIDR notation for IPv6 proxies in the trusted_proxies parameter of config.php [1]. This patch adds support for that. [1]: https://docs.nextcloud.com/server/24/admin_manual/configuration_server/reverse_proxy_configuration.html#defining-trusted-proxies Signed-off-by: Simon Leiner <simon@leiner.me>
* | | Merge pull request #32958 from ↵Julius Härtl2022-08-021-1/+28
|\ \ \ | | | | | | | | | | | | nextcloud/fix/noid/permission-update-allow-public-uploads
| * | | fix share manager testsJulien Veyssier2022-08-021-1/+28
| |/ / | | | | | | | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* / / Fix dynamic property creations in test filesCôme Chilliet2022-08-014-2/+11
|/ / | | | | | | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #32482 from nextcloud/enh/noid/share-attributesCarl Schwan2022-08-012-1/+39
|\ \ | | | | | | Add share attributes + prevent download permission
| * | Fix share attribute related tests + code styleVincent Petry2022-07-281-0/+3
| | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | Add share attributes + prevent download permissionVincent Petry2022-07-282-1/+36
| | | | | | | | | | | | | | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #33225 from nextcloud/fix/handle-one-time-passwordsCarl Schwan2022-07-291-1/+9
|\ \ \ | |/ / |/| | Handle one time password better
| * | Handle one time password betterCarl Schwan2022-07-281-1/+9
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Redesign guest pages for better accessibilityCarl Schwan2022-07-271-18/+6
| | | | | | | | | | | | | | | | | | | | | - Use white box and put content on it - Improve focus indicator Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Adjust acceptance tests to changes in sharing tabDaniel Calviño Sánchez2022-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | The name of the user shared with is now marked with a "span" rather than with "h5". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #33320 from ↵Vincent Petry2022-07-261-3/+3
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/remove-files-duplicate-dom-ids Replace files app ids to classes
| * | | Replace files app ids to classesVincent Petry2022-07-261-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #33031 from nextcloud/fix/improve-local-ip-detectionCôme Chilliet2022-07-261-0/+5
|\ \ \ | |/ / |/| | Improve local IP detection
| * | Use Symfony IpUtils to check for local IP rangesCôme Chilliet2022-07-121-0/+5
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #33129 from nextcloud/fix-reading-blob-as-resourcesblizzz2022-07-251-0/+17
|\ \ \ | | | | | | | | Fix reading blob data as resource
| * | | Fix reading blob data as resourceThomas Citharel2022-07-251-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PostgreSQL returns data as resource when using IQueryBuilder::PARAM_LOB (which is used for QBMapper). Previously we just converted this resource using settype, which produced things like "Resource id #14" instead of the actual resource data. Now we read the stream correctly if the returned data is a resource See context at #22472 Fixes #22439 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | Delete comments that expired nowVitor Mattos2022-07-251-1/+4
|/ / / | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | | fix Controller testsArthur Schiwon2022-07-222-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | - added pageTitle in code was missing in expectations - fixed warnings of superflouos parameter - fixed wrong type of mock Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #32981 from nextcloud/typing/carl/simplefsCarl Schwan2022-07-182-4/+15
|\ \ \ | | | | | | | | Add typing to SimpleFS
| * | | Add typing to SimpleFSCarl Schwan2022-07-142-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | - Fix putContent sometimes return a bool and sometimes nothing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | Move CappedMemoryCache to OCPCarl Schwan2022-07-145-8/+8
| |_|/ |/| | | | | | | | | | | | | | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #32552 from nextcloud/enh/improve-job-handling-commandsCôme Chilliet2022-07-121-24/+28
|\ \ \ | |_|/ |/| | Improve job handling through occ
| * | Fix DummyJobList typingCôme Chilliet2022-07-121-8/+2
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Fix DummyJobList class used by testsCôme Chilliet2022-07-111-17/+27
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #32973 from nextcloud/cleanup/avatar-codeCarl Schwan2022-07-112-15/+16
|\ \ \ | |/ / |/| | Cleanup avatar related code
| * | Make Color class publicCarl Schwan2022-07-052-10/+11
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Cleanup avatar related codeCarl Schwan2022-06-222-8/+8
| |/ | | | | | | | | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #33110 from nextcloud/feat/handle-onetime-password-largeblizzz2022-07-081-4/+75
|\ \ | | | | | | Handle one time password and very large passwords
| * | Handler large passwordsCarl Schwan2022-07-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For passwords bigger than 250 characters, use a bigger key since the performance impact is minor (around one second to encrypt the password). For passwords bigger than 470 characters, give up earlier and throw exeception recommanding admin to either enable the previously enabled configuration or use smaller passwords. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Handle one time passwordsCarl Schwan2022-07-051-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | This adds an option to disable storing passwords in the database. This might be desirable when using single use token as passwords or very large passwords. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Adjust fake managerJoas Schilling2022-07-011-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Allow to expire comments of multiple objects with one callJoas Schilling2022-07-011-3/+40
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | use blueprint from repoRobin Appelman2022-06-301-0/+20
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #32960 from nextcloud/fix/avoid-using-undeclared-propertiesCôme Chilliet2022-06-281-0/+2
|\ \ | | | | | | Fix PHP 8.2 warnings about undeclared properties
| * | Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-211-0/+2
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #32998 from nextcloud/fix/setting_nameLouis2022-06-271-1/+1
|\ \ \ | | | | | | | | Rename setting name to reduce its length
| * | | Rename setting name to reduce its lengthLouis Chemineau2022-06-271-1/+1
| | |/ | |/| | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Merge pull request #32863 from nextcloud/feature/add-comments-expire-dateblizzz2022-06-242-1/+52
|\ \ \ | |/ / |/| | Add comments expire date
| * | Follow the most common pattern used in projectVitor Mattos2022-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` git grep strval|wc -l 32 git grep "(string)"|wc -l 481 ``` Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Add comments expire dateVitor Mattos2022-06-152-1/+52
| | | | | | | | | | | | | | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* | | Merge pull request #32242 from nextcloud/fix-logging-data-arrayblizzz2022-06-212-11/+52
|\ \ \ | |_|/ |/| | Fix logging data context to file
| * | Fix logging data context to fileThomas Citharel2022-05-022-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was only logged when an exception was provided or when using logData (which is not being much used). We make sure the interpolated parameters are not logged. Only tested with file write logger, but shouldn't work differently. Crash reporters always had the context. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Merge pull request #32868 from ↵blizzz2022-06-211-0/+7
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/replace-opis-closure-by-laravel-fork Replace opis/closure by laravel/serializable-closure
| * | | Add a test about unserializing data from opis/closure serializationCôme Chilliet2022-06-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | We need to be able to unserialize data from before upgrade. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #32901 from nextcloud/fix/remove-at-matcher-in-lib-testsCôme Chilliet2022-06-2118-966/+872
|\ \ \ \ | | | | | | | | | | Remove at matcher uses in tests/lib