summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* unit tests for Manager::invalidateTokensOfUserArtur Neumann2022-12-201-0/+44
| | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* Merge pull request #35799 from nextcloud/backport/35780/stable24Vincent Petry2022-12-191-7/+14
|\ | | | | [stable24] Fix missing cast of double controller parameters
| * fix(app framework): Fix missing cast of double controller parametersChristoph Wurst2022-12-161-7/+14
| | | | | | | | | | | | ``settype`` allows 'double' as alias of 'float'. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #35657 from nextcloud/backport/35649/stable24Vincent Petry2022-12-161-9/+11
|\ \ | |/ |/| [stable24] Update the unencrypted file size when closing streams
| * Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-9/+11
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | check if params given to API are really an arrayArtur Neumann2022-12-161-2/+13
|/ | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* Merge pull request #35141 from nextcloud/backport/34160/stable24Côme Chilliet2022-11-212-2/+22
|\ | | | | [stable24] Detect weird local ips
| * Fix tests for nested v4 in v6Côme Chilliet2022-11-141-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Harden tests for local IP detection in URLsCôme Chilliet2022-11-142-0/+20
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Run integration tests on 3rdparty bumpJoas Schilling2022-11-141-0/+2
|/ | | Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Fix PublicKeyTokenProviderTest import and mockChristoph Wurst2022-11-111-4/+2
| | | | | | | * IDBConnection import missing * Atomic doesn't need a mock Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #34659 from nextcloud/backport/34632/stable24Vincent Petry2022-11-041-2/+7
|\ | | | | [stable24] Add rate limiting on lost password emails
| * Fix LostController testCôme Chilliet2022-11-031-2/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #34855 from nextcloud/backport/34799/stable24Vincent Petry2022-11-041-8/+39
|\ \ | | | | | | [stable24] Emit typed event when preview is requested
| * | Emit typed event when preview is requestedJulius Härtl2022-10-271-8/+39
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #34947 from nextcloud/backport/34804/stable24Vincent Petry2022-11-041-2/+3
|\ \ | | | | | | [stable24] Skip general login with email for non-valid addresses and LDAP
| * | Skip general login with email for non-valid addresses and LDAPJulius Härtl2022-11-031-2/+3
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Run session token renewals in a database transactionChristoph Wurst2022-11-031-2/+18
|/ | | | | | | | | | | | | The session token renewal does 1) Read the old token 2) Write a new token 3) Delete the old token If two processes succeed to read the old token there can be two new tokens because the queries were not run in a transaction. This is particularly problematic on clustered DBs where 1) would go to a read node and 2) and 3) go to a write node. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #34440 from nextcloud/backport/32635/stable24John Molakvoæ2022-10-271-1/+5
|\
| * Update ContactsStoreTest.phpAndy Xheli2022-10-271-1/+5
| | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
* | Merge pull request #34797 from nextcloud/backport/33540/stable24Vincent Petry2022-10-271-0/+25
|\ \ | | | | | | [stable24] fix updating cached mounts that didn't have their mount provider set previously
| * | add tests for cached mount provider migrationRobin Appelman2022-10-251-0/+25
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #34410 from nextcloud/backport/33566/stable24John Molakvoæ2022-10-271-0/+19
|\ \ \ | |_|/ |/| |
| * | add test for trying to fopen a file which no longer exists on diskRobin Appelman2022-10-061-0/+19
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Check share attributes on preview endpointsJulius Härtl2022-10-261-0/+9
| |/ |/| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix external storages accessszaimen2022-10-231-3/+1
|/ | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #33791 from ↵blizzz2022-09-271-2/+6
|\ | | | | | | | | nextcloud/backport/stable24-wait-for-the-new-user-form-to-be-visible-in-acceptance-tests [stable24] Wait for the new user form to be visible in acceptance tests
| * Wait for the new user form to be visibleDaniel Calviño Sánchez2022-09-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | Before it was checked if the new user form was visible, but it was not waited for it. It seems that it can happen that the new user form is in the DOM, and therefore found, but not visible yet when the tests run, which caused them to (randomly) fail. Due to that now it is explicitly waited until it is visible, rather than assuming that it is visible as soon as it appears in the DOM. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Filter out old files when trying to get recent filesCarl Schwan2022-09-081-4/+4
|/ | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix share attribute related tests + code styleVincent Petry2022-08-031-0/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-08-032-1/+36
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #33439 from nextcloud/backport/32958/stable24blizzz2022-08-031-1/+28
|\ | | | | [stable24] Fix file public link permissions if public upload is not enabled
| * fix share manager testsJulien Veyssier2022-08-021-1/+28
| | | | | | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* | Merge pull request #33407 from nextcloud/backport/stable24/one-time-passwordVincent Petry2022-08-031-4/+83
|\ \ | |/ |/| [stable24] Handle one time and large passwords
| * Handle one time and large passwordsCarl Schwan2022-07-291-4/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. 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>
* | Use Symfony IpUtils to check for local IP rangesCôme Chilliet2022-07-261-0/+5
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* Merge pull request #33138 from nextcloud/fix-branch-selection-in-stable24blizzz2022-07-071-1/+1
|\ | | | | [stable24] Fix branch selection
| * Fix branch selection in stable24Daniel Calviño Sánchez2022-07-061-1/+1
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #32983 from nextcloud/backport/32242/stable24John Molakvoæ2022-07-072-11/+52
|\ \ | |/ |/|
| * Fix logging data context to fileThomas Citharel2022-06-222-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>
* | Rename setting name to reduce its lengthLouis Chemineau2022-06-281-1/+1
| | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Merge pull request #32940 from nextcloud/backport/32719/stable24blizzz2022-06-241-0/+312
|\ \ | |/ |/| [stable24] Fix email shares not being shown to other users
| * Fix email shares not being shown to other usersRichard Steinmetz2022-06-211-0/+312
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Merge pull request #32870 from nextcloud/backport/32813/stable24blizzz2022-06-211-0/+2
|\ \ | |/ |/| [stable24] Run php tests when 3rdparty changed
| * Run php tests when 3rdparty changedDaniel Kesselberg2022-06-141-0/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | make placeholder a const for reuseArthur Schiwon2022-06-161-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix overwriting original vars when loggingArthur Schiwon2022-06-161-1/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add serializer testArthur Schiwon2022-06-161-0/+67
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #32708 from nextcloud/unencrypted-size-24blizzz2022-06-113-4/+8
|\ | | | | [24] store unencrypted size in the unencrypted_size column