summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-033-4/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #32683 from nextcloud/backport/32371/stable24blizzz2022-06-111-1/+1
|\ \ | | | | | | [stable24] More meaningfull message when a public authenticated share's password is wrong or has expired.
| * | More meaningfull message when a public authenticated share's password is ↵Cyrille Bollu2022-06-011-1/+1
| |/ | | | | | | | | | | wrong or has expired Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* | Merge pull request #32657 from nextcloud/backport/32655/stable24Vincent Petry2022-06-101-12/+30
|\ \ | | | | | | [stable24] Handle non existing settings again
| * | Fix unit testsJoas Schilling2022-05-311-12/+30
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #32770 from nextcloud/backport/32697/stable24Vincent Petry2022-06-091-5/+28
|\ \ | | | | | | [stable24] Fix get avatar authorization
| * | Test all scopesChristopher Ng2022-06-081-5/+8
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * | Fix get avatar authorizationChristopher Ng2022-06-081-0/+20
| |/ | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* / Add unit tests for encryption's isSystemWideMountPointVincent Petry2022-06-021-0/+41
|/ | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #32414 from nextcloud/backport/32305/stable24Joas Schilling2022-05-161-2/+7
|\ | | | | [stable24] Fix user agent trimming on installation
| * Fix user agent trimming on installationJoas Schilling2022-05-161-2/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #32415 from nextcloud/backport/32375/stable24blizzz2022-05-162-33/+50
|\ \ | | | | | | [stable24] Show user account on grant loginflow step
| * | Extend testsJoas Schilling2022-05-162-33/+50
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #32159 from nextcloud/backport/32155/stable24blizzz2022-05-161-0/+7
|\ \ | |/ |/| [stable24] Fx translations with trailing colon
| * Add a unit test for translation with trailing colonJoas Schilling2022-04-261-0/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Expose shareWithDisplayNameUnique also on autocomplete endpointJoas Schilling2022-05-051-9/+30
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get not only time-sensitive next job from list but anyKirill Popov2022-04-251-1/+1
| | | | | | | Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
* Fix testJoas Schilling2022-04-201-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>