Commit graph

528 commits

Author SHA1 Message Date
Salvatore Martire
65d339eeaa fix(files_sharing): remove condition on "Others with access"
The condition was checking shares.length to display the Others with
access component, but shares is filled only on expanding that section,
rendering the section never visible.
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2025-08-27 15:01:43 +02:00
Salvatore Martire
c88822be27 fix(files_sharing): do not check password checkbox by default
The checkbox appears checked when no password is set (share.password ===
undefined)

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2025-08-26 18:30:32 +02:00
provokateurin
08de60b019
fix(files_sharing): Correctly reject pending remote shares
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-08-26 10:26:44 +02:00
John Molakvoæ
7f59f39eb4
fix(files_sharing): bypass sidebar call and return null straight away
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2025-08-21 11:48:19 +02:00
skjnldsv
eb53d1a700 fix(files_sharing): sharing status action permission and sidebar await
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

[skip ci]
2025-08-21 09:26:50 +00:00
nfebe
2533bb5052 fix(files_sharing): Implementation conditional federation placeholder
This commits addresses an annoyance where the share input placeholder would

suggest sharing via federated cloud ID even if federation was disabled.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-08-20 00:25:35 +02:00
Ferdinand Thiessen
1ca389c653 fix(files_sharing): only show "shared with me" information if shared
The variable is intialized to `{}` which is truthy, so instead just
check if there is a user assigned to the share info.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-06 11:08:13 +00:00
skjnldsv
e3f176f980 fix(files_sharing): ensure password or date is enabled by default to be enforced
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-08-04 17:18:50 +00:00
nfebe
dea8324912 feat(files_sharing): Toggle display for trusted server shares
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-08-01 12:18:36 +01:00
Ferdinand Thiessen
d3d0e283dc chore: remove nextcloud-vue-collections and use @nextcloud/vue instead
`nextcloud-vue-collections` is deprecated for quite some time and was
merged into `@nextcloud/vue`. So lets drop that dependency.

Adjust the two files where it was used, one of them was itself never
used so just dropped that file.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-31 23:15:22 +02:00
skjnldsv
0565caffd9 fix(files_sharing): fallback self.crypto.getRandomValues
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-07-28 17:57:01 +00:00
Ferdinand Thiessen
b847d2f23f
fix(files_sharing): restore state when updating share failed
We need to save the previous state - here the password - so that if the
update fails we can revert the shown state.
This happens e.g. if you have the password policy app and try to add an
unsecure password.

To reproduce (with password policy):
1. Create new link share
2. enable password protection
3. use insecure password like `1234`
4. save share

Now you see that the update failed, but the password protection is still
enabled. This happened because `password` and `newPassword` were
misused. `password` was already set when `newPassword` was not saved so
we could not know to what we need to reset when the update failed.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-23 18:33:22 +02:00
provokateurin
46d149a0fa
fix(files_sharing): Stop hiding delete share button in advanced settings menu
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-06-30 13:43:41 +02:00
Ferdinand Thiessen
ae3027f852
fix(files_sharing): do not double escape the share title
The title is already escaped by vue so special characters would result
in incorrect strings.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-06-26 09:12:23 +02:00
nfebe
a0b9e1381e feat(files_sharing): Hide external shares for users in excluded groups
- Added frontend check to hide link shares if, public sharing is disabled.

Signed-off-by: nfebe <fenn25.fn@gmail.com>

[skip ci]
2025-06-19 13:30:48 +02:00
skjnldsv
e46c36a1e8 fix(files_sharing): show message when nickname is not valid
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-06-05 08:56:17 +02:00
Ferdinand Thiessen
69322803ef fix: do not show account filter for public shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-06-01 20:42:05 +02:00
nfebe
e1a306340d fix(files_sharing): Show note if note exists on share
When a share includes a note, ensure the note checkbox is checked and the note is
displayed when reopening the share sidebar.

Fixes: #52794.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-26 18:05:15 +02:00
Ferdinand Thiessen
e51e4d6c3e
fix(files_sharing): show note, label and list of uploaded files on file drop
This was missing from the Vue migration of the public share view:
- Show the note as the description of the file drop
- Show the label as the heading of the file drop if available
- Show list of uploaded files for verification

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-05-26 14:14:40 +02:00
Ferdinand Thiessen
2bb2bbcae4
fix(files_sharing): Disable folder upload on file drop shares for now
The backend does not allow creating folders currently, so we have to
disable it for now.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-05-17 12:04:36 +02:00
nfebe
80c901a08a fix(files_sharing): Move ConfigLexicon to Config dir, update sharing input
- Fix autoloading for new `ConfigLexicon`
- Ensure that sharing input in sharing tab respect `show-federated-shares-as-internal`:
This is important, because when federated shares are shown as internal the users should add them from the internal shares section

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-06 15:53:07 +01:00
nfebe
67ef7e1653 feat(files_sharing): Add toggle for federated share display area
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-06 15:37:34 +01:00
nfebe
d1b91c47a3 perf(files_sharing): Change sharing filtering from O(3n) to O(n)
Replaced multiple Array.filter() calls with a single loop to improve performance.

This avoids redundant iterations over the shares array and categorizes them more efficiently.

Signed-off-by: nfebe <fenn25.fn@gmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-05-06 15:37:26 +01:00
nfebe
76c847dfb3 fix(files_sharing): Show remote shares in external shares section
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-06 15:25:23 +01:00
skjnldsv
1486243604 fix(dav): check the owner displayName scope before giving attribute
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

[skip ci]
2025-04-30 12:38:16 +02:00
nfebe
fca9c5ae4a fix(files_sharing): Prevent create/delete permissions on file shares
File shares can't support create or delete permissions. This change ensures those permissions are

stripped or ignored when the shared item is not a folder.

Signed-off-by: nfebe <fenn25.fn@gmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-04-29 13:02:27 +00:00
Ferdinand Thiessen
ae94a80e1a
fix: adjust webpack nonce generation
some leftovers where the request token is used instead of the CSP nonce.
in general this makes not much difference - but there are some cases
where those values differ.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-27 15:11:44 +02:00
Ferdinand Thiessen
495bb2c69c fix(files_sharing): allow to disable share download permission
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-27 14:26:16 +02:00
Ferdinand Thiessen
73bcc0a739 refactor(files): use new hide-download WebDAV property for download action
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-27 14:26:16 +02:00
F. E Noel Nfebe
989f24fea6
Merge pull request #52409 from nextcloud/backport/52364/stable31
[stable31] fix(files_sharing): Improve expiration date input change handling
2025-04-24 21:39:17 +02:00
rakekniven
d249074e9c
chore(i18n): Use "name" instead of "nickname"
Users asked why they should use a nickname?

"Name" covers nickname, pseudonym, username or real name.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2025-04-24 18:53:59 +02:00
nfebe
1d52c09b05 fix(files_sharing): Improve expiration date input change handling
If the time picker component is emitting a Date object already, then there is redundant call of `new Date(new Date())` and

therefore introduces subtle bugs, for example on chrome users could not  enter expiration date with keyboard.

- Use @update:model-value instead of @change/@input for more reliable date updates

- Ensure null and invalid dates are handled correctly in onExpirationChange

- Validate date input before updating defaultExpirationDateEnabled

Resolves : https://github.com/nextcloud/server/issues/51875

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-04-24 12:04:06 +01:00
skjnldsv
f47b72c134
fix(files_sharing): file request pass empty string if password or expiration is disabled
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

[skip ci]
2025-04-22 11:17:23 +02:00
Ferdinand Thiessen
504cb11c5d
Merge pull request #52001 from nextcloud/backport/51937/stable31
[stable31] perf(files_sharing): do not emit second propfind for account filter
2025-04-18 19:53:36 +02:00
nfebe
cc9ec2607a fix(files_sharing): Apply default password setting in SharingDetailsTab
Signed-off-by: nfebe <fenn25.fn@gmail.com>

[skip ci]
2025-04-15 10:57:10 +00:00
Ferdinand Thiessen
c253e9a2e2 perf(files_sharing): do not require second propfind for account filter
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-14 10:41:22 +02:00
skjnldsv
f81ef274dd fix(files_sharing): fix share creation error handling
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-04-09 15:22:32 +00:00
Ferdinand Thiessen
d9ba5d6810
fix(files_sharing): make sure IDs are unique for HTML elements
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-02 13:10:32 +02:00
Ferdinand Thiessen
938289c052
fix(files_sharing): ugly hacks to update permissions on share creation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-02 13:10:32 +02:00
yemkareems
368a82ffb6
fix: pass hide download attribute while creating the share to fix github issue 50788
Signed-off-by: yemkareems <yemkareems@gmail.com>
2025-04-02 13:10:32 +02:00
Ferdinand Thiessen
b07ef78fa2 fix(files_sharing): ensure share status action works also in grid view
Remove some hacks from files app about the *files_sharing* status
action, in general not sure why this hack was there instead of being in
the correct app - but it broke the grid view.

So now the sharing information is also available in grid view.

Moreover the icon is fixed in size to not overflow the actions menu.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-19 22:49:05 +01:00
Andy Scherzinger
a8cd60062d
Merge pull request #51236 from nextcloud/backport/51151/stable31
[stable31] fix(files_sharing): ignore duplicated navigation when replacing current route
2025-03-04 23:55:10 +01:00
Ferdinand Thiessen
ee1aec7225
fix(files_sharing): ignore duplicated navigation when replacing current route
Missing piece from https://github.com/nextcloud/server/pull/50669 as we
also need to adjust the files sharing router otherwiese we can get those
exceptions.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-04 22:26:20 +01:00
Ferdinand Thiessen
eb8c19c7cf fix(files_sharing): Map sharee information for shared-by-you view
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-04 21:51:53 +01:00
John Molakvoæ
fc0634045d
fix(eslint): Strings must use singlequote
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2025-03-02 12:43:38 +01:00
Valdnet
26d3a8f48f
fix(l10n): use do not instead of don't
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2025-03-02 12:43:38 +01:00
Christopher Ng
9ded1e3c63 fix(files_sharing): Fix public share expiration being set when toggle is not enabled
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2025-02-19 12:59:42 +01:00
Ferdinand Thiessen
8003b270c5
feat(sharing): Allow to set default view mode for public shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-11 12:19:05 +01:00
skjnldsv
d8b6e83805 fix(files): support submenu in batch actions header too
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-07 09:22:54 +00:00
nfebe
08f50dcead fix(files_sharing): Hide internal recommendations in external share input
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-06 14:11:50 +01:00