Marcel Klehr
8207afb7db
fix: Use UserFacingProcessingException properly in tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
4 months ago
Ferdinand Thiessen
af7c56a75e
test(TaskProcessing): use proper types
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
4 months ago
Carl Schwan
336cc3fa35
feat(Db): Use SnowflakeId for previews
Allow to get an id for the storing the preview on disk before inserting
the preview on the DB.
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
4 months ago
Benjamin Gaussorgues
c9b055a0d0
feat(database): introduce Snowflake IDs generator
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
4 months ago
Ferdinand Thiessen
7f125551f5
chore: migrate `@small` and `@medium` to attributes
Both are basically special groups, which we do not use.
But they also had a special meaning in the past which now only works
when set on the test class: They set the test timeout.
So for `@small` we just remove them, for `@medium` we remove where not
needed but keep it on the class where the full test class might make use
of the adjusted timeout.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
4 months ago
Ferdinand Thiessen
d6d6747a73
refactor: apply rector rules for PHPUnit 10
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
4 months ago
Daniel Kesselberg
6e04437de6
fix: validate filename when creating file from template
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 months ago
skjnldsv
9c98b722f4
fix(dav): allow multiple link shares token in session
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
4 months ago
Ferdinand Thiessen
f3383f9f90
chore: split frontend building into legacy Vue 2 and Vue 3
- Built the frontend in separate packages until we migrated everything
to Vue 3.
- Separate logic into two packages controlled by main package.json
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
4 months ago
Marcel Klehr
606b0631d4
fix: Use proper userId in taskprocessing trigger tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
4 months ago
Marcel Klehr
044e92bf4e
feat(TaskProcessing): Introduce ITriggerableProvider
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
# Conflicts:
# lib/private/TaskProcessing/Db/TaskMapper.php
4 months ago
Joas Schilling
9e4ac50206
fix(l10n): Don't fallback from 3-letter languages to 2-letter
Signed-off-by: Joas Schilling <coding@schilljs.com>
4 months ago
SebastianKrupinski
ea2180d6ad
fix: iMip reply from outlook.com does not contain organizer property
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
6 months ago
Marcel Klehr
e12c0ed7a3
test(TaskProcessing): Add test for user-facing error messages
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
4 months ago
Christoph Wurst
3e90ce89eb
test(net): include test for localhost by IP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
8 months ago
Carl Schwan
9095a36b94
refactor(dbal): Port away from getDatabasePlatform() instanceof pattern
Use getDatabaseProvider instead.
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
4 months ago
Marcel Müller
0ca6384097
fix: Unset classes in container to reduce side-effects between tests
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
4 months ago
Marcel Klehr
1e9a5019b4
fix(FileAccess): Set filecache size column in tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
5 months ago
nfebe
c9bb6eedc6
fix: Include email when searching share suggestions
Signed-off-by: nfebe <fenn25.fn@gmail.com>
5 months ago
nfebe
c1d9e22c51
fix(sharing): Adapt share suggestions to match trusted servers configs
When `show_federated_shares_to_trusted_servers_as_internal` is enabled
but `show_federated_shares_as_internal` is not, filter federated share
suggestions to only include trusted servers. Previously, searching for
an email address would suggest non-trusted federated servers.
Resolved : #54511
Signed-off-by: nfebe <fenn25.fn@gmail.com>
5 months ago
Carl Schwan
bef3996c3e
fix(preview): Make version column a string
And move it to a different table so that we don't have to pay the
storage cost when not using it (most of the times).
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Ferdinand Thiessen
1f24865caf
chore(tests): drop legacy Karma tests
we no longer use Karma tests, all actual tests have been migrated to
vitest. The leftover tests are already covered by unit tests in
packages.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
5 months ago
Carl Schwan
66f50bd585
refactor(preview): Use same mimetype ids as filecache
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Carl Schwan
58023782b6
feat(preview): Store original file mimetype in preview table
Allow to quickly query all the files from a specific mimetype like in
the ResetRenderedTexts command.
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Carl Schwan
324b54b863
refactor(preview): Cleanup the implementation of the new preview backend
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Carl Schwan
6f56dcf73e
fix(preview): Fix some tests
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Carl Schwan
b0357663b9
perf(preview): Optimize migration and simplify DB layout
* Simplify migration by not moving the actual files and just updating
the DB
* Don't store the storageid in the preview table as it is not needed
* Start adding tests
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Carl Schwan
bba9667882
perf(preview): Adapt BackgroundCleanupJob to new previews table
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
6 months ago
Carl Schwan
6008852232
feat(preview): Support multibucket storage
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
6 months ago
Daniel Kesselberg
83a691709c
refactor: use IEmailValidator.isValid instead of IMailer.validateEmailAddress
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
8 months ago
Carl Schwan
60c2875670
refactor: Cleanup some unit tests
- use declare(strict_types=1)
- use strong typing
- Remove some weird things in ControllerTest
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
Ferdinand Thiessen
31571476d3
refactor(files_external): migrate Ajax with `OC_JSON` to proper controller
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
5 months ago
Marcel Müller
31481701f3
fix(appstore): Make appstore timeout configurable
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
5 months ago
Côme Chilliet
bdff12361c
fix: Cleanup and fix tests, and fix related issues in code
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Côme Chilliet
73447618e7
chore: Run rector on lib/private/Template folder and cleanup more typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Carl Schwan
8e5eef24d2
refactor: Remove OC_Helper::streamCopy
Replace by Files::streamCopy, also deprecated but since less long
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
5 months ago
provokateurin
504eae65bd
refactor: Apply rector Nextcloud 27 set
Signed-off-by: provokateurin <kate@provokateurin.de>
5 months ago
provokateurin
d59338b377
refactor: Apply rector Nextcloud 26 set
Signed-off-by: provokateurin <kate@provokateurin.de>
5 months ago
Ferdinand Thiessen
660f3f6fd1
refactor: use logical `&&` `||` instead of weak `and` `or` operators
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
5 months ago
provokateurin
6a12fbc4f3
refactor: Run rector
Signed-off-by: provokateurin <kate@provokateurin.de>
5 months ago
Thomas Citharel
f4e703bd5b
feat(test-case): allow to use PHPUnit Group attributes to mark tests requiring database
Before that, only the annotation @group('DB') is possible to mark test classes as requiring the database. Now the \PHPUnit\Framework\Attributes\Group attribute can be used as long as PHPUnit 10+ is used.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
5 months ago
Côme Chilliet
5e9af71509
fix(tests): Fix UserPluginTest methods expectation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Côme Chilliet
8107f614d8
fix(tests): Ignore expected warning for s3 tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Côme Chilliet
3e4531dd05
fix: Fix methods returning null for arrays in schema Mock
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Côme Chilliet
844c405f71
fix(tests): Make dataGeneralChecks static in Share20 ManagerTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
5 months ago
Côme Chilliet
ac61839d1e
fix(tests): Fix PHPUnit deprecation warnings in tests
Turn data providers into static methods, mostly.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
6 months ago
Louis Chemineau
bd8a0ec3cf
feat(files): Add appconfig value to disable fixed userfolder permissions optimization
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Louis Chemineau <louis@chmn.me>
5 months ago
Akhil
fe30ca872b
feat(config): Add UserConfigChangedEvent whenever user config is updated
Signed-off-by: Akhil <akhil@e.email>
2 years ago
provokateurin
bfb4fe8f86
fix(core): Stop abusing the cache for avatar upload
Signed-off-by: provokateurin <kate@provokateurin.de>
8 months ago
Benjamin Gaussorgues
5883914422
feat(db): add SSL/TLS support for PostgreSQL
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
5 months ago