Commit Graph

73611 Commits (b8464efa6940ea8be128bed29386409c2c96ace8)
 

Author SHA1 Message Date
Daniel Calviño Sánchez b6d8e6bed8 fix: Hide status tooltip in row to add a new mount point
The row to add a new mount point is cloned when a new mountpoint is
added, so it is expected that it includes a status span. However, it
should not be displayed in that row, only in the cloned row when its
status is updated.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:39 +07:00
Daniel Calviño Sánchez 0644361147 fix: Fix unmodified placeholder replacing the actual value when updating
When updating global storages and user storages a property is not
updated by "StoragesService::updateStorage()" if the value matches the
unmodified placeholder. However, userglobal storages are not updated
through the "StoragesService"; as only the authentication mechanism is
updated it is directly done with "saveBackendOptions()" in
"IUserProvided" or "UserGlobalAuth". Due to this the unmodified
placeholder value needs to be explicitly checked in those cases and
replaced by the actual value (note that in this case it is not possible
to just skip updating a specific property).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:38 +07:00
Daniel Calviño Sánchez 59b62aa50f test: Add integration tests for saving external userglobal storages
As the external storage uses the Nextcloud server itself the number of
workers of the PHP process running the Nextcloud server had to be
increased. Otherwise if a request is sent for the external storage while
handling a request from the integration tests a deadlock would occur.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:38 +07:00
Daniel Calviño Sánchez b72aebf7be fix: Reset selected backend when adding a new storage
As a new storage is added by selecting a backend the selected backend
needs to be reset. Otherwise it is not possible to add another storage
with the same backend.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:38 +07:00
Daniel Calviño Sánchez fa28a1da64 fix: Add missing translation for UI string
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:38 +07:00
Daniel Calviño Sánchez 65885fea33 fix: Restore default status tooltip when no status message is provided
If the status is updated but no explicit message is provided (for
example, if the status check succeeded) the default tooltip (from the
template) is now set to prevent a mismatch between the status and the
tooltip (for example, if the configuration is fixed after a failed
status check).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:38 +07:00
Daniel Calviño Sánchez 029626ba8f fix: Set status tooltip to error message on failed actions
When saving, updating and rechecking an storage fails (which is
different to the soft-fail when the action itself succeeds but the
status check does not) further details are provided in the error message
of the response, which is now set as the tooltip.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:37 +07:00
Daniel Calviño Sánchez 35f16a3d8a fix: Set status tooltip to status message when saving an storage
When a storage is saved the status check can fail even if saving the
storage succeeds. In those cases further details are provided in the
status message of the storage, which is now set as the tooltip,
similarly to how it is done when rechecking the storage.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:37 +07:00
Daniel Calviño Sánchez 9108d54bda fix: Remove status check when configuration was changed
Setting a null status was supposed to remove the status check, but
nothing was changed in that case. Now the status check is properly
removed, and doing that by hiding the element rather than just turning
it invisible also prevents that clicking on the invisible status
triggers a check, as until the new configuration is saved the check will
still be performed with the old configuration, which could be misleading
for the user.

Additionally, an explicit width is set to the parent of the span element
to prevent its width from changing when the span is shown and hidden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:37 +07:00
Daniel Calviño Sánchez dc18849d18 fix: Recheck userglobal storages when loaded
Userglobal storages are now automatically recheck when loaded, similarly
to how it is done for global storages.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:37 +07:00
Daniel Calviño Sánchez fc93517fc5 refactor: Store result in its own variable
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:36 +07:00
Daniel Calviño Sánchez e43af1da71 fix: Remove broken jQuery tooltip
In Nextcloud 29 and later the tooltip usage threw an error that caused
the UI to be unusable, so it was removed. In Nextcloud 28 there is no
error, but using the jQuery tooltip call causes the tooltip to be
unreadable, so it was removed as well (which makes the native tooltip to
be shown instead).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-09-05 04:18:36 +07:00
Nextcloud bot 1b3d4fa45e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-05 00:24:13 +07:00
Arthur Schiwon f61e020522
build(hub): 28.0.10 RC1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2024-09-04 23:04:53 +07:00
provokateurin e77ac5c8e1 fix(files): Create non-existent parents of mountpoints
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-04 18:01:36 +07:00
Kate 4ac730e463
Merge pull request #47746 from nextcloud/backport/47738/stable28 2024-09-04 18:00:05 +07:00
nextcloud-command 3a5e0bd10a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-09-04 15:10:14 +07:00
skjnldsv 3a2a043ff6 fix(files): undefined sidebar
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-09-04 14:52:41 +07:00
Richard Steinmetz ce7da15800
Merge pull request #47732 from nextcloud/backport/44344/stable28
[stable28] fix(dav): adjust usages of webdav.customRequest
2024-09-04 12:07:22 +07:00
Richard Steinmetz 56f4e8096d
fix(dav): adjust usages of webdav.customRequest
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-09-04 11:22:57 +07:00
John Molakvoæ ffed734524
Merge pull request #47722 from nextcloud/backport/47721/stable28 2024-09-04 09:16:54 +07:00
Nextcloud bot a297773da2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-04 00:22:21 +07:00
nextcloud-command 6ba86702db chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-09-03 19:43:20 +07:00
John Molakvoæ 77c00e27de fix: only keep major as server version
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-09-03 19:35:51 +07:00
Kate f033e32af6
Merge pull request #47714 from nextcloud/backport/47674/stable28 2024-09-03 17:59:36 +07:00
Andy Scherzinger 208bbf307c
Merge pull request #46680 from nextcloud/backport/44294/stable28
[stable28] fix: Pass the mountpoint target user to storages without owner
2024-09-03 17:46:40 +07:00
Andy Scherzinger c55ca78816
Merge pull request #47701 from nextcloud/backport/47635/stable28
[stable28] [oauth2] Store hashed secret instead of encrypted
2024-09-03 17:25:33 +07:00
provokateurin 5a30576c44 fix(settings): Fix sharing exclude groups from password requirement option not working
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-09-03 14:57:39 +07:00
Andy Scherzinger 49e9442199
Update lib/public/Files/Storage/IStorage.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-09-03 14:32:49 +07:00
Julius Härtl 53f92e68e6 fix: Pass the mountpoint target user to storages without owner
Storages that do not have a dedicated owner (e.g. groupfolders, external
storages) currently always assume the current session user as the owner.
This leads to several issues when there is no user session but a node is
obtained through a user folder.

In order to have the correct user available we need to pass the user
that is used to setup a mountpoint along to the storage layer as we
generally assume that an owner is available for those.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-09-03 12:23:37 +07:00
Andy Scherzinger 2f285ae136
Merge pull request #47697 from nextcloud/backport/47627/stable28
[stable28] [LinkReferenceProvider] Better size check
2024-09-03 10:29:32 +07:00
nextcloud-command fc903fd04a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-09-03 01:47:10 +07:00
Julien Veyssier ca587b1108
fix(oauth2): fix tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-09-03 03:18:38 +07:00
Julien Veyssier f226974c50
fix(oauth2): store hashed secret instead of encrypted
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-09-03 03:18:30 +07:00
Julien Veyssier d942fbd7bb
fix(linkReferenceProvider): better size check
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-09-03 02:51:34 +07:00
Nextcloud bot f4848d736e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-03 00:21:16 +07:00
Andy Scherzinger 54df0ddd10
Merge pull request #47669 from nextcloud/automated/noid/stable28-fix-npm-audit
[stable28] Fix npm audit
2024-09-02 09:28:17 +07:00
Nextcloud bot 9d8956151f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-02 00:21:25 +07:00
nextcloud-command f350bbd6fb fix(deps): Fix npm audit
Signed-off-by: GitHub <noreply@github.com>
2024-09-01 03:01:42 +07:00
Nextcloud bot f263b56136
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-01 00:21:10 +07:00
Ferdinand Thiessen 25fbb9dafb
Merge pull request #47639 from nextcloud/backport/47465/stable28
[stable28] fix(files): Reset drop notice on firefox
2024-08-31 18:17:32 +07:00
Nextcloud bot 95c70aab1a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-08-31 00:26:30 +07:00
Nextcloud bot 4963489269
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-08-30 16:33:04 +07:00
John Molakvoæ 6ac090a387 fix(files): missing RawLocation type import
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-08-30 14:05:08 +07:00
nextcloud-command 9345959665 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-08-30 13:45:50 +07:00
Ferdinand Thiessen 0d5c37b638 fix(files): Reset drop notice on firefox
On firefox there is an old bug where when you move a dragged file outside
the window the `dragleave` event is never emitted.
So we just use a timeout to reset the drag over state.

Also a small change: Use the ID of the main container instead of relying on tag name and class.
(The ID is guranteed as other APIs rely on it, while the class is just used internally).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-30 13:45:50 +07:00
Josh 3dd43006fd
Merge pull request #47624 from nextcloud/backport/47567/stable28
[stable28] fix(config): Avoid error messages for restricted opcache API
2024-08-30 08:38:49 +07:00
Simon L. 74bca6cff8
Merge pull request #47622 from nextcloud/backport/47598/stable28
[stable28] fix: re-enable content-length header via htaccess
2024-08-30 10:51:45 +07:00
Josh e25ead690c fix(config): Avoid error messages for restricted opcache API
Make changes recently added via #44230 match #8188 to avoid failures in restricted hosting environments.

Fixes #47562

Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-08-30 07:55:55 +07:00
Simon L. 2664fcfe60 fix: re-enable content-length header via htaccess
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-08-30 07:54:02 +07:00