]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
3 years agoProperly end iterating over the file once the target has been reached 26376/head
Julius Härtl [Fri, 26 Feb 2021 10:12:20 +0000 (11:12 +0100)]
Properly end iterating over the file once the target has been reached

Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years agoMerge pull request #26371 from nextcloud/backport/26370/stable21
Joas Schilling [Tue, 30 Mar 2021 11:09:34 +0000 (13:09 +0200)]
Merge pull request #26371 from nextcloud/backport/26370/stable21

[stable21] Remove notifications when retesting profile field input

3 years agoMerge pull request #26363 from nextcloud/backport/26325/stable21
Christoph Wurst [Tue, 30 Mar 2021 09:30:46 +0000 (11:30 +0200)]
Merge pull request #26363 from nextcloud/backport/26325/stable21

[stable21] Update cipher defaults

3 years agoRemove notifications when retesting 26371/head
Joas Schilling [Tue, 30 Mar 2021 08:18:23 +0000 (10:18 +0200)]
Remove notifications when retesting

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #26366 from nextcloud/backport/26355/stable21
Joas Schilling [Tue, 30 Mar 2021 07:53:48 +0000 (09:53 +0200)]
Merge pull request #26366 from nextcloud/backport/26355/stable21

[stable21] Fix working for phone number integration

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 30 Mar 2021 02:24:32 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26326 from nextcloud/backport/26070/stable21
Roeland Jago Douma [Mon, 29 Mar 2021 19:13:13 +0000 (21:13 +0200)]
Merge pull request #26326 from nextcloud/backport/26070/stable21

[stable21] add a prefix index to filecache.path

3 years agoFix working for phone number integration 26366/head
Joas Schilling [Mon, 29 Mar 2021 15:04:32 +0000 (17:04 +0200)]
Fix working for phone number integration

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #26357 from nextcloud/backport/26342/stable21
Roeland Jago Douma [Mon, 29 Mar 2021 19:04:11 +0000 (21:04 +0200)]
Merge pull request #26357 from nextcloud/backport/26342/stable21

[stable21] Fix broken Calendar Event Invite email icons in Gmail by using PNGs instead of SVGs

3 years agoUpdate cipher defaults 26363/head
J0WI [Fri, 26 Mar 2021 18:38:38 +0000 (19:38 +0100)]
Update cipher defaults

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
3 years agochange calendar invite emails to use pngs instead of svgs 26357/head
Nick Sweeting [Sat, 27 Mar 2021 03:43:42 +0000 (23:43 -0400)]
change calendar invite emails to use pngs instead of svgs

Signed-off-by: Nick Sweeting <git@sweeting.me>
3 years agoMerge pull request #26352 from nextcloud/backport/26243/stable21
Joas Schilling [Mon, 29 Mar 2021 09:29:57 +0000 (11:29 +0200)]
Merge pull request #26352 from nextcloud/backport/26243/stable21

[stable21] Avatar privacy and new scope

3 years agoCapability for federated scope 26352/head
Vincent Petry [Fri, 26 Mar 2021 15:54:47 +0000 (16:54 +0100)]
Capability for federated scope

Added additional capability in the provisioning API to signal whether
the federation scope values can be used.

This is based on whether the lookup server upload is enabled or not.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoUpdate autoloader for PlaceholderAvatar
Vincent Petry [Thu, 25 Mar 2021 14:57:24 +0000 (15:57 +0100)]
Update autoloader for PlaceholderAvatar

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoInt tests for provisioning API scopes
Vincent Petry [Thu, 25 Mar 2021 14:30:41 +0000 (15:30 +0100)]
Int tests for provisioning API scopes

Added integration tests for the scope attributes in the provisioning
API.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoAdd known user check in avatar when v2-private scope
Vincent Petry [Thu, 25 Mar 2021 13:14:14 +0000 (14:14 +0100)]
Add known user check in avatar when v2-private scope

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoUpdate psalm-baseline for Avatar API quirks
Vincent Petry [Thu, 25 Mar 2021 12:04:39 +0000 (13:04 +0100)]
Update psalm-baseline for Avatar API quirks

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoChange account property capability
Vincent Petry [Thu, 25 Mar 2021 13:16:20 +0000 (14:16 +0100)]
Change account property capability

Include version number in capability

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
3 years agoAdded PlaceholderAvatar with own cached images
Vincent Petry [Thu, 25 Mar 2021 11:21:03 +0000 (12:21 +0100)]
Added PlaceholderAvatar with own cached images

When avatar scope is private, the PlaceholderAvatar is used to deliver a
placeholder avatar based on the user's initials.

This was implemented as a separate class for now to avoid messing with
the existing UserAvatar implementation and its generated vs
non-generated logic.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoAdd capability for editable scopes in provisioning API
Vincent Petry [Thu, 25 Mar 2021 10:16:21 +0000 (11:16 +0100)]
Add capability for editable scopes in provisioning API

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoAdd property scope tests for AccountManager
Vincent Petry [Wed, 24 Mar 2021 16:06:04 +0000 (17:06 +0100)]
Add property scope tests for AccountManager

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoEnhance UsersControllerTest of provisioning API with scopes
Vincent Petry [Wed, 24 Mar 2021 15:17:28 +0000 (16:17 +0100)]
Enhance UsersControllerTest of provisioning API with scopes

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoExpose avatarScope through provisioning API
Vincent Petry [Wed, 24 Mar 2021 14:32:51 +0000 (15:32 +0100)]
Expose avatarScope through provisioning API

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoOCS allow reading and writing account property scopes
Vincent Petry [Wed, 24 Mar 2021 11:32:06 +0000 (12:32 +0100)]
OCS allow reading and writing account property scopes

Extends the provisioning API to allow a user to get and set their own
account property scopes.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoMake extra user profile fields always editable
Vincent Petry [Tue, 23 Mar 2021 15:59:05 +0000 (16:59 +0100)]
Make extra user profile fields always editable

The fields for phone number, address, website and twitter are now
editable regardless whether federated sharing and the lookup server
are enabled or not.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoMap old account scope properties to new names
Vincent Petry [Tue, 23 Mar 2021 13:47:10 +0000 (14:47 +0100)]
Map old account scope properties to new names

Use new scope values in settings page.
Adjust all consumers to use the new constants.
Map old scope values to new ones in account property getter.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoAdjust scopes menu based on conditions
Vincent Petry [Tue, 23 Mar 2021 10:38:25 +0000 (11:38 +0100)]
Adjust scopes menu based on conditions

Now not all fields have the "v2-private" option in place.
Fix dropdown issue when a scope was stored that is not listed after
disabling the lookup server.
Whenever the lookup server upload is disabled, the scope menu is now
displayed where it makes sense to allow switching between the two private
scopes.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoAdd new v2-private account scope
Vincent Petry [Mon, 22 Mar 2021 11:08:53 +0000 (12:08 +0100)]
Add new v2-private account scope

Added new v2-private account manager scope that restricts the scope
further by excluding public link access.

Avatars with v2-private account scope are now showing the guest avatar
instead of the real avatar.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 29 Mar 2021 02:24:09 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 28 Mar 2021 02:24:15 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 27 Mar 2021 02:24:38 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years agoadd a prefix index to filecache.path 26326/head
Robin Appelman [Thu, 11 Mar 2021 15:37:23 +0000 (16:37 +0100)]
add a prefix index to filecache.path

The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields,
which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column,
allowing us to add an index even if the column is to long.

Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places.

Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation.

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoMerge pull request #26307 from nextcloud/backport/22201/stable21
Roeland Jago Douma [Fri, 26 Mar 2021 09:44:59 +0000 (10:44 +0100)]
Merge pull request #26307 from nextcloud/backport/22201/stable21

[stable21] Delete old birthday calendar object when moving contact to another ad…

3 years agoMerge pull request #26291 from nextcloud/backport/21484/stable21
Roeland Jago Douma [Fri, 26 Mar 2021 09:44:43 +0000 (10:44 +0100)]
Merge pull request #26291 from nextcloud/backport/21484/stable21

[stable21] show better error messages when a file with a forbidden path is encountered

3 years agoMerge pull request #26263 from nextcloud/backport/26046/stable21
Roeland Jago Douma [Fri, 26 Mar 2021 09:44:03 +0000 (10:44 +0100)]
Merge pull request #26263 from nextcloud/backport/26046/stable21

[stable21] update icewind/smb to 3.4.0

3 years agoDelete old birthday calendar object when moving contact to another address book 26307/head
Christian Weiske [Tue, 11 Aug 2020 20:13:55 +0000 (22:13 +0200)]
Delete old birthday calendar object when moving contact to another address book

When an contact is moved to another address book, the contact is copied to
the second address book.
During copying, the birthday event is created - but it gets the same UID
as the contact's birthday event in the first address book.

To prevent the "Calendar object with uid already exists" error that followed,
we need to delete the old entry before the new one is created.

Resolves: https://github.com/nextcloud/server/issues/20492
Signed-off-by: Christian Weiske <cweiske@cweiske.de>
3 years agoMerge pull request #26298 from nextcloud/backport/26287/stable21
John Molakvoæ [Fri, 26 Mar 2021 07:08:41 +0000 (08:08 +0100)]
Merge pull request #26298 from nextcloud/backport/26287/stable21

[stable21] Fix l10n

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 26 Mar 2021 02:25:43 +0000 (02:25 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26301 from nextcloud/backport/26299/stable21
Morris Jobke [Thu, 25 Mar 2021 19:33:35 +0000 (20:33 +0100)]
Merge pull request #26301 from nextcloud/backport/26299/stable21

[stable21] Log when a storage is marked as unavailable

3 years agoLog when a storage is marked as unavailable 26301/head
Morris Jobke [Thu, 25 Mar 2021 15:14:20 +0000 (16:14 +0100)]
Log when a storage is marked as unavailable

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 years agoFix l10n 26298/head
Valdnet [Thu, 25 Mar 2021 09:26:50 +0000 (10:26 +0100)]
Fix l10n

Issue: #26286

3 years agoshow better error messages when a file with a forbidden path is encountered 26291/head
Robin Appelman [Fri, 19 Jun 2020 12:57:58 +0000 (14:57 +0200)]
show better error messages when a file with a forbidden path is encountered

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 25 Mar 2021 02:25:48 +0000 (02:25 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26257 from nextcloud/backport/26198/stable21
Morris Jobke [Wed, 24 Mar 2021 16:32:36 +0000 (17:32 +0100)]
Merge pull request #26257 from nextcloud/backport/26198/stable21

[stable21] Handle limit offset and sorting in files search

3 years agoMerge pull request #26279 from nextcloud/backport/26255/stable21
Morris Jobke [Wed, 24 Mar 2021 16:14:19 +0000 (17:14 +0100)]
Merge pull request #26279 from nextcloud/backport/26255/stable21

[stable21] l10n: Separate ellipsis

3 years agoMerge pull request #26276 from nextcloud/backport/26265/stable21
Morris Jobke [Wed, 24 Mar 2021 16:13:44 +0000 (17:13 +0100)]
Merge pull request #26276 from nextcloud/backport/26265/stable21

[stable21] Fix casing of core test folder, bring back missing tests

3 years agoRevert controller tests to match stable21 API 26276/head
Vincent Petry [Wed, 24 Mar 2021 14:22:35 +0000 (15:22 +0100)]
Revert controller tests to match stable21 API

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agol10n: Separate ellipsis 26279/head
Valdnet [Tue, 23 Mar 2021 08:12:52 +0000 (09:12 +0100)]
l10n: Separate ellipsis

Unifying the text string with the others.

3 years agoMerge pull request #26249 from nextcloud/backport/25529/stable21
Morris Jobke [Wed, 24 Mar 2021 13:20:25 +0000 (14:20 +0100)]
Merge pull request #26249 from nextcloud/backport/25529/stable21

[stable21] Fix non LGC glyphs in avatars and txt file previews

3 years agoMerge pull request #26271 from nextcloud/backport/26270/stable21
Morris Jobke [Wed, 24 Mar 2021 13:09:03 +0000 (14:09 +0100)]
Merge pull request #26271 from nextcloud/backport/26270/stable21

[stable21] Catch invalid cache source storage path

3 years agoFix language codes test result order
Vincent Petry [Wed, 24 Mar 2021 09:26:06 +0000 (10:26 +0100)]
Fix language codes test result order

Fixes issue with Oracle by enforcing the order of the results to check.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoBring back forgotten tests
Vincent Petry [Wed, 24 Mar 2021 08:07:54 +0000 (09:07 +0100)]
Bring back forgotten tests

Remove "ocs-provider" test folder reference as it doesn't exist any
more.
Added back "Test" test subdir and fixed the tests inside.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix more controller tests in Core subdir
Vincent Petry [Wed, 24 Mar 2021 08:02:19 +0000 (09:02 +0100)]
Fix more controller tests in Core subdir

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix more tests in the Core subdir
Vincent Petry [Wed, 24 Mar 2021 07:48:28 +0000 (08:48 +0100)]
Fix more tests in the Core subdir

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix core tests command for app enabling/disabling
Vincent Petry [Tue, 23 Mar 2021 19:40:28 +0000 (20:40 +0100)]
Fix core tests command for app enabling/disabling

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix casing of core test folder
Vincent Petry [Tue, 23 Mar 2021 17:12:46 +0000 (18:12 +0100)]
Fix casing of core test folder

It seems Phpunit < 9 was case insensitive.
Fixed the phpunit config to target the correct name for the "Core" test
directory.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoCatch invalid cache source storage path 26271/head
John Molakvoæ (skjnldsv) [Wed, 24 Mar 2021 09:36:51 +0000 (10:36 +0100)]
Catch invalid cache source storage path

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 24 Mar 2021 02:25:17 +0000 (02:25 +0000)]
[tx-robot] updated from transifex

3 years agoupdate icewind/smb to 3.4.0 26263/head
Robin Appelman [Wed, 10 Mar 2021 14:31:09 +0000 (15:31 +0100)]
update icewind/smb to 3.4.0

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agouse node search api for legacy file search endpoint 26257/head
Robin Appelman [Fri, 19 Mar 2021 13:47:30 +0000 (14:47 +0100)]
use node search api for legacy file search endpoint

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agopass order from unified search to file search
Robin Appelman [Fri, 19 Mar 2021 13:29:08 +0000 (14:29 +0100)]
pass order from unified search to file search

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agohandle ordering in folder search
Robin Appelman [Fri, 19 Mar 2021 13:26:44 +0000 (14:26 +0100)]
handle ordering in folder search

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agofolder filtering in sql
Robin Appelman [Fri, 19 Mar 2021 12:41:00 +0000 (13:41 +0100)]
folder filtering in sql

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agocleanup fileinfo creation
Robin Appelman [Fri, 19 Mar 2021 12:35:37 +0000 (13:35 +0100)]
cleanup fileinfo creation

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoformat
Robin Appelman [Thu, 18 Mar 2021 16:44:30 +0000 (17:44 +0100)]
format

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agohandle limit and offset in folder file search
Robin Appelman [Thu, 18 Mar 2021 16:38:31 +0000 (17:38 +0100)]
handle limit and offset in folder file search

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoonly require user to be set in a query that handles tags
Robin Appelman [Thu, 18 Mar 2021 16:16:28 +0000 (17:16 +0100)]
only require user to be set in a query that handles tags

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agounify handling of Folder::search methods into "new" query objects
Robin Appelman [Thu, 18 Mar 2021 15:35:41 +0000 (16:35 +0100)]
unify handling of Folder::search methods into "new" query objects

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agouse "newer" node search api directly in unified search
Robin Appelman [Thu, 18 Mar 2021 15:22:29 +0000 (16:22 +0100)]
use "newer" node search api directly in unified search

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 23 Mar 2021 02:24:15 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years agoAdd OCC command to reset rendered texts 26249/head
Daniel Calviño Sánchez [Sun, 7 Feb 2021 21:48:58 +0000 (22:48 +0100)]
Add OCC command to reset rendered texts

The command is meant to be used when the fonts used to render texts
("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf")
are changed (for example, to add support for other scripts). The avatar
and text file previews will be removed, so they will be generated again
with the updated font when needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoInclude additional scripts in Noto fonts
Daniel Calviño Sánchez [Fri, 5 Feb 2021 03:34:15 +0000 (04:34 +0100)]
Include additional scripts in Noto fonts

Generated avatars as well as text file previews are rendered using the
"core/fonts/NotoSans-Regular.ttf" font. The file was the standard hinted
"NotoSans-Regular.ttf" file from https://www.google.com/get/noto/.
However that file does not cover some non LGC (Latin, Greek, Cyrillic)
scripts, like Arabic, Devanagari or Hebrew, to name a few.

Markdown file previews also use "core/fonts/NotoSans-Bold.ttf", which is
in the same situation as the regular one.

Due to limitations in the TTF format it is not possible to provide a
single file for each style that includes all Noto fonts. However, it is
possible to add more scripts to the standard "NotoSans-Regular.ttf" and
"NotoSans-Bold.ttf" files (although no CJK (Chinese, Japanese, Korean)
glyph can be included due to the aforementioned limitations).

This commit replaces the standard files with an extended version created
using the Noto Tools. The build script (as well as a patch for the Noto
Tools) is also included for reference and to be able to update the font
files in the future if needed.

Due to the additional scripts added the font files are now much larger,
although this does not seem to increase the time spent rendering LGC
scripts.

Note that the file for the bold style still contains less scripts than
the regular one, as not all scripts supported by Noto have a bold
weight.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoMerge pull request #26177 from nextcloud/backport/26161/stable21
Morris Jobke [Mon, 22 Mar 2021 20:02:43 +0000 (21:02 +0100)]
Merge pull request #26177 from nextcloud/backport/26161/stable21

[stable21] Improve search results when only phonebook-matches can we autocompleted

3 years agoMake psalm happy 26177/head
Roeland Jago Douma [Mon, 22 Mar 2021 19:09:25 +0000 (20:09 +0100)]
Make psalm happy

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoAlso limit to user group in case enumeration is enabled for groups and phonenumbers
Joas Schilling [Wed, 17 Mar 2021 09:26:21 +0000 (10:26 +0100)]
Also limit to user group in case enumeration is enabled for groups and phonenumbers

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix parameter types in docs
Joas Schilling [Wed, 17 Mar 2021 08:36:06 +0000 (09:36 +0100)]
Fix parameter types in docs

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoAdd missing index on the user column
Joas Schilling [Wed, 17 Mar 2021 08:19:42 +0000 (09:19 +0100)]
Add missing index on the user column

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoImprove search results when only phonebook-matches can we autocompleted
Joas Schilling [Wed, 17 Mar 2021 08:02:37 +0000 (09:02 +0100)]
Improve search results when only phonebook-matches can we autocompleted

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #26238 from nextcloud/backport/26231/stable21
John Molakvoæ [Mon, 22 Mar 2021 12:55:28 +0000 (13:55 +0100)]
Merge pull request #26238 from nextcloud/backport/26231/stable21

3 years agol10n: Add changes to text string for user 26238/head
Valdnet [Mon, 22 Mar 2021 08:01:45 +0000 (09:01 +0100)]
l10n: Add changes to text string for user

3 years agol10n: Add word user in ShareByMailProvider.php
Valdnet [Sat, 20 Mar 2021 14:37:32 +0000 (15:37 +0100)]
l10n: Add word user in ShareByMailProvider.php

Standardizing text strings with other Nextcloud applications.

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 22 Mar 2021 02:23:56 +0000 (02:23 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26227 from nextcloud/backport/26213/stable21
Morris Jobke [Sun, 21 Mar 2021 19:57:42 +0000 (20:57 +0100)]
Merge pull request #26227 from nextcloud/backport/26213/stable21

[stable21] Removed unnecessary padding

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 21 Mar 2021 02:23:20 +0000 (02:23 +0000)]
[tx-robot] updated from transifex

3 years agoRemoved unnecessary padding 26227/head
Sascha Wiswedel [Fri, 19 Mar 2021 13:24:10 +0000 (14:24 +0100)]
Removed unnecessary padding

Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
3 years agoMerge pull request #26215 from nextcloud/backport/26145/stable21
Roeland Jago Douma [Sat, 20 Mar 2021 09:53:40 +0000 (10:53 +0100)]
Merge pull request #26215 from nextcloud/backport/26145/stable21

[stable21] add (hidden) option to always show smb root as writable

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 20 Mar 2021 02:23:52 +0000 (02:23 +0000)]
[tx-robot] updated from transifex

3 years agoadd (hidden) option to always show smb root as writable 26215/head
Robin Appelman [Tue, 16 Mar 2021 14:34:41 +0000 (15:34 +0100)]
add (hidden) option to always show smb root as writable

some smb servers are very insistent in reporting that the root of the share is readonly, even if it isn't.

This works around the problem by adding a hidden option to overwrite the permissions of the root of the share.

This can be enabled using

```bash
occ files_external:config <mount id> root_force_writable true
```

where you can find your mount id using

```bash
occ files_external:list
```

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoMerge pull request #26211 from nextcloud/backport/23718/stable21
Morris Jobke [Fri, 19 Mar 2021 14:21:17 +0000 (15:21 +0100)]
Merge pull request #26211 from nextcloud/backport/23718/stable21

[stable21] expand 'path is already shared' error message

3 years agoMerge pull request #26204 from nextcloud/backport/26200/stable21
Morris Jobke [Fri, 19 Mar 2021 14:19:19 +0000 (15:19 +0100)]
Merge pull request #26204 from nextcloud/backport/26200/stable21

[stable21] Update user share must use correct expiration validation

3 years agoMerge pull request #26119 from nextcloud/backport/26003/stable21
Vincent Petry [Fri, 19 Mar 2021 12:59:00 +0000 (13:59 +0100)]
Merge pull request #26119 from nextcloud/backport/26003/stable21

[stable21] Add getID function to the simplefile implementation

3 years agoexpand 'path is already shared' error message 26211/head
Robin Appelman [Tue, 27 Oct 2020 13:29:28 +0000 (14:29 +0100)]
expand 'path is already shared' error message

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoUpdate user share must use correct expiration validation 26204/head
Vincent Petry [Thu, 18 Mar 2021 16:12:28 +0000 (17:12 +0100)]
Update user share must use correct expiration validation

Updating a user or group share now uses the correct method for the
validation of the expiration date. Instead of using the one from links
it uses the one for internal shares.

To avoid future confusion, the method "validateExpirationDate" has been
renamed to "validateExpirationDateLink".

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoMerge pull request #26124 from nextcloud/backport/25533/stable21
Morris Jobke [Fri, 19 Mar 2021 08:18:49 +0000 (09:18 +0100)]
Merge pull request #26124 from nextcloud/backport/25533/stable21

[stable21] send share notification instead of erroring on duplicate share

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 19 Mar 2021 02:25:05 +0000 (02:25 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26122 from nextcloud/backport/26004/stable21
Roeland Jago Douma [Thu, 18 Mar 2021 15:20:46 +0000 (16:20 +0100)]
Merge pull request #26122 from nextcloud/backport/26004/stable21

[stable21] Allow overwriting isAuthenticated

3 years agoMerge pull request #26192 from nextcloud/backport/25331/stable21
Vincent Petry [Thu, 18 Mar 2021 10:23:51 +0000 (11:23 +0100)]
Merge pull request #26192 from nextcloud/backport/25331/stable21

[stable21] Fix valid storages removed when cleaning remote storages

3 years agoFix valid storages removed when cleaning remote storages 26192/head
Daniel Calviño Sánchez [Tue, 26 Jan 2021 09:26:10 +0000 (10:26 +0100)]
Fix valid storages removed when cleaning remote storages

The remote URL of a share is always stored in the database with a
trailing slash. However, when a cloud ID is generated trailing slashes
are removed.

The ID of a remote storage is generated from the cloud ID, but the
"cleanup-remote-storage" command directly used the remote URL stored in
the database. Due to this, even if the remote storage was valid, its ID
did not match the ID of the remote share generated by the command and
ended being removed.

Now the command generates the ID of remote shares using the cloud ID
instead, just like done by the remote storage, so there is no longer a
mismatch.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoAdd integration tests for "sharing:cleanup-remote-storages" OCC command
Daniel Calviño Sánchez [Fri, 22 Jan 2021 11:40:59 +0000 (12:40 +0100)]
Add integration tests for "sharing:cleanup-remote-storages" OCC command

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoMerge pull request #26087 from nextcloud/backport/26049/stable21
Vincent Petry [Thu, 18 Mar 2021 07:21:50 +0000 (08:21 +0100)]
Merge pull request #26087 from nextcloud/backport/26049/stable21

[stable21] limit constructing of result objects in file search