Commit Graph

7629 Commits

Author SHA1 Message Date
Git'Fellow 5dda39a61e refactor(dbal): move to modern calls
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-24 10:35:00 +02:00
Ferdinand Thiessen b81b787bbc Merge pull request #61530 from nextcloud/fix/rootfolder-sharedstorage-init
perf: avoid DIing IRootFolder at every shared storage init
2026-06-23 22:30:22 +02:00
Salvatore Martire 9d6c04169f Merge pull request #59857 from nextcloud/authoritative-time-accounting-fix
fix: track time spent in recursive markOrRun calls
2026-06-23 18:48:02 +02:00
Salvatore Martire 93a4f887ea perf: avoid DIing IRootFolder at every shared storage init
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2026-06-23 11:10:27 +02:00
Salvatore Martire 351d3c6377 Merge pull request #61517 from nextcloud/fix/noserverget-shares
fix: stop calling DI container in SharedStorage
2026-06-23 10:39:32 +02:00
Kent Delante 046de320f5 fix(files_sharing): remove filename's leading slash on unshare toast
Signed-off-by: Kent Delante <kent@delante.me>
2026-06-23 13:26:33 +08:00
Salvatore Martire b7c97ea269 fix: stop calling DI container in SharedStorage
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2026-06-22 23:33:46 +02:00
Robin Appelman 6cb5115eb3 Merge pull request #60465 from nextcloud/share-cleanup-mounts
fix: update cached mounts when moving share in repair step
2026-06-22 15:52:47 +02:00
Robin Appelman fdb9d12ee9 Merge pull request #60466 from nextcloud/share-target-repair-expensive
fix: properly mark CleanupShareTarget as expensive
2026-06-22 15:51:58 +02:00
Salvatore Martire 53d48d6f29 fix: track time spent in recursive markOrRun calls
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2026-06-22 13:05:25 +02:00
Nextcloud bot 874ef1e0d3 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-22 00:22:55 +00:00
Nextcloud bot bd6995dff9 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-20 00:22:50 +00:00
Joas Schilling 410fdea9e7 fix(migrations): Trigger recently added migrations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2026-06-19 09:56:01 +02:00
Nextcloud bot cbc86ed620 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-19 00:23:44 +00:00
Robin Appelman 22229f93e7 fix: update cached mounts when moving share in repair step
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-18 21:55:55 +02:00
Robin Appelman 57a80c2c10 fix: properly mark CleanupShareTarget as expensive
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-18 21:55:41 +02:00
Micke Nordin a88fdcbed5 Merge pull request #57234 from enriquepablo/master
Implement token exchange from OCM
2026-06-18 11:33:24 +02:00
Nextcloud bot dad4644546 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-18 00:22:59 +00:00
nfebe 0632913527 fix(files_sharing): Drop permissions on unmounted pending and deleted shares
Pending and deleted shares are not mounted into the user's filesystem, so
generic file operations like delete or download produced a misleading
"file is not available" error.

These shares now carry no permissions, so every permission-aware action
hides itself automatically, without the files app having to special-case
each view. Conversion additionally requires read permission, matching the
server-side readability check.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2026-06-17 12:37:26 +01:00
Enrique Pérez Arnaud 3616212ba2 feat(files_sharing): store and refresh OCM access tokens for external shares
Co-authored-by: Micke Nordin <kano@sunet.se>
Signed-off-by: Micke Nordin <kano@sunet.se>
Signed-off-by: Enrique Pérez Arnaud <enrique@cazalla.net>
2026-06-17 11:01:16 +02:00
Côme Chilliet 805902eed3 chore: Re-enable tests failing on drone
We do not use drone anymore, let’s see if we can fix these tests or if
 they should be removed.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:29 +02:00
Nextcloud bot bb8bc057ac fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-11 00:23:13 +00:00
Benjamin Gaussorgues 2b7415ef4d Merge pull request #60960 from nextcloud/carl/querybuilder-magic-number
refactor: Use new IQueryBuilder::MAX_IN_PARAMETERS
2026-06-10 23:09:30 +02:00
Robin Appelman 2ee8f5c374 test: improve setup in share propagation tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:37:26 +02:00
Robin Appelman 7db238319f test: more group/user test trait usage and setup/teardown improvements
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:37:24 +02:00
Robin Appelman 10e636f61c test: use dummy users in SharesReminderJobTest
saves ~5s

Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:35:07 +02:00
Robin Appelman d47fd8d708 test: mock ocm discovery in external share test
saves ~50s while running tests

Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:35:07 +02:00
Nextcloud bot f3ecb372e3 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-07 00:22:27 +00:00
Nextcloud bot dbe23295e4 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-06-06 00:22:55 +00:00
Carl Schwan 994565fec7 refactor: Use new IQueryBuilder::MAX_IN_PARAMETERS
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-03 13:45:29 +02:00
Kent Delante da448bfe03 fix(files_sharing): clear the password after saving
Signed-off-by: Kent Delante <kent@delante.me>
2026-06-03 02:19:44 +00:00
Benjamin Gaussorgues a8428f883d Merge pull request #59002 from nextcloud/fix/remove-static-vars
Remove usage of static vars or properties
2026-06-02 11:28:20 +02:00
Carl Schwan b7ee8e7545 Merge pull request #59813 from nextcloud/fix/noid/fix-owncloud-group-share-rename
fix(sharing): set STATUS_ACCEPTED when creating USERGROUP subshare on…
2026-06-02 11:14:13 +02:00
Côme Chilliet 9c92cc1617 chore: Suppress last known impure static properties
We will keep these legacy ones for now. We can search for the
 ImpureStaticProperty suppression and add special treatement for them in
 the frankenphp PR if needed.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-06-02 09:46:20 +02:00
Côme Chilliet 1ab09ec753 chore: Apply new coding standard to all files
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines
To see only the changes not related to blank lines.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-06-01 13:46:39 +02:00
Nextcloud bot c8b29c9dac fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-05-27 00:23:20 +00:00
Anna Larch 6220ae9175 fix(sharing): restore STATUS_ACCEPTED for OC-migrated group share subshares
When an ownCloud-migrated group share (which has no per-user USERGROUP
subshare) is renamed for the first time, DefaultShareProvider::move()
inserted a new USERGROUP row without setting `accepted`. The column
defaulted to 0 (STATUS_PENDING), causing MountProvider to skip the
share on the next login — the shared file disappeared for the recipient.

Fix: set accepted = STATUS_ACCEPTED explicitly on the INSERT in
DefaultShareProvider::move() for the TYPE_GROUP branch.

Secondary fix: SharedMount::moveMount() silently returned true when
updateFileTarget() threw (e.g. group no longer exists on an OC-migrated
instance). Set $result = false in the catch block so View::rename()
propagates the failure instead of silently corrupting VFS state.

An opt-in occ command (sharing:fix-owncloud-group-shares) with --dry-run
support is included to repair existing broken instances. It targets only
TYPE_USERGROUP subshares with accepted=STATUS_PENDING and permissions!=0
(shares that were accepted but broken by the missing column default),
leaving explicitly declined shares (permissions=0) untouched.

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-05-26 17:28:39 +02:00
Nextcloud bot 46bc7ebd52 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-05-22 00:22:45 +00:00
Andy Scherzinger d6a7065b07 Merge pull request #60542 from nextcloud/share-api-remove-hashed-pw
don't put hashed password in share api response
2026-05-20 10:36:32 +02:00
Robin Appelman b2494f224f test: adjust tests redacted password field
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-05-19 16:04:42 +02:00
Robin Appelman aa7e48e5e8 fix: don't put hashed password in share api response
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-05-19 16:04:39 +02:00
Stephan Orbaugh 0617a68135 Merge pull request #60493 from nextcloud/fix/files_sharing/unknown-activity
fix(files_sharing): Use UnknownActivityException
2026-05-19 14:38:56 +02:00
Daniel Calviño Sánchez e1796a57e8 fix: Fix error when creating mail shares if custom tokens are enabled
When a new share is saved it is first created in the backend and then
updated with some additional attributes set in the frontend. If custom
tokens are enabled the attributes to update also include the token.
However, for new shares the token is set by the backend when it is
created, it is not defined by the frontend, so the token returned by the
backend needs to be copied to the share data in the frontend. Otherwise
the update would fail because an empty token is sent.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2026-05-18 11:36:13 +01:00
provokateurin 1063769a77 fix(files_sharing): Use UnknownActivityException
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-05-18 07:26:58 +02:00
Ferdinand Thiessen 304f160008 fix(files_sharing): do not double escape special characters
- fixes https://github.com/nextcloud/server/issues/60163

The strings are already escaped by Vue so no need to escape in the
translation method, this will cause double escaping.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-05-16 10:02:35 +02:00
Nextcloud bot 7d0b0d8a83 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-05-16 00:24:00 +00:00
Joas Schilling 820f2145a1 chore: Bump app versions and requirements
Signed-off-by: Joas Schilling <coding@schilljs.com>
2026-05-15 09:31:33 +02:00
Ferdinand Thiessen 21426974b1 fix(app-info-shipped): add remote as its still available in code base
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-05-12 22:52:32 +02:00
Peter Ringelmann f96cf79348 fix(files_sharing): apply link share password on first save
Pre-declare newPassword on the share state so Vue 2's reactivity covers
it from the start. Without this, $set later relies on a
property-addition notification path that races with the toggle's async
setter and intermittently drops the password in certain build
environments.

Fixes: #57011
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
2026-05-12 10:08:18 +02:00
Nextcloud bot 88b79c6a1b fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2026-05-12 00:20:57 +00:00