Commit Graph

57697 Commits

Author SHA1 Message Date
Julius Härtl fc2e09b667 Properly end iterating over the file once the target has been reached
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-30 19:22:47 +00:00
Joas Schilling b2072cd6fc
Merge pull request #26371 from nextcloud/backport/26370/stable21
[stable21] Remove notifications when retesting profile field input
2021-03-30 13:09:34 +02:00
Christoph Wurst ba1d671055
Merge pull request #26363 from nextcloud/backport/26325/stable21
[stable21] Update cipher defaults
2021-03-30 11:30:46 +02:00
Joas Schilling 3afeb5c908 Remove notifications when retesting
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-30 09:27:17 +00:00
Joas Schilling 3ebe3a0e5f
Merge pull request #26366 from nextcloud/backport/26355/stable21
[stable21] Fix working for phone number integration
2021-03-30 09:53:48 +02:00
Nextcloud bot 68e9013c39
[tx-robot] updated from transifex 2021-03-30 02:24:32 +00:00
Roeland Jago Douma f9cef329ba
Merge pull request #26326 from nextcloud/backport/26070/stable21
[stable21] add a prefix index to filecache.path
2021-03-29 21:13:13 +02:00
Joas Schilling 2b8dfc03b6 Fix working for phone number integration
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-29 19:06:10 +00:00
Roeland Jago Douma 2cc0fd0f62
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
2021-03-29 21:04:11 +02:00
J0WI 6691bc4bd4 Update cipher defaults
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-03-29 18:39:45 +00:00
Nick Sweeting e7aefc3424 change calendar invite emails to use pngs instead of svgs
Signed-off-by: Nick Sweeting <git@sweeting.me>
2021-03-29 16:17:16 +00:00
Joas Schilling a956c53e04
Merge pull request #26352 from nextcloud/backport/26243/stable21
[stable21] Avatar privacy and new scope
2021-03-29 11:29:57 +02:00
Vincent Petry 15e52fa7cb 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>
2021-03-29 07:03:38 +00:00
Vincent Petry 6cb5f36cf4 Update autoloader for PlaceholderAvatar
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:37 +00:00
Vincent Petry 9ca91c15db 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>
2021-03-29 07:03:37 +00:00
Vincent Petry ec492eadfa Add known user check in avatar when v2-private scope
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:37 +00:00
Vincent Petry 92ff94083b Update psalm-baseline for Avatar API quirks
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:36 +00:00
Vincent Petry ecae714157 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>
2021-03-29 07:03:36 +00:00
Vincent Petry ab22999eb9 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>
2021-03-29 07:03:36 +00:00
Vincent Petry 2613826fcc Add capability for editable scopes in provisioning API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:35 +00:00
Vincent Petry 73ec32d19b Add property scope tests for AccountManager
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:35 +00:00
Vincent Petry 2fd62b4f0d Enhance UsersControllerTest of provisioning API with scopes
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:35 +00:00
Vincent Petry ad402ffc96 Expose avatarScope through provisioning API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-29 07:03:34 +00:00
Vincent Petry b9d59e2994 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>
2021-03-29 07:03:32 +00:00
Vincent Petry 5c854ba132 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>
2021-03-29 07:03:32 +00:00
Vincent Petry 5d76574a81 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>
2021-03-29 07:03:31 +00:00
Vincent Petry e2ab530ee3 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>
2021-03-29 07:03:31 +00:00
Vincent Petry f45f826b52 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>
2021-03-29 07:03:31 +00:00
Nextcloud bot d6156b970b
[tx-robot] updated from transifex 2021-03-29 02:24:09 +00:00
Nextcloud bot f10f9d090a
[tx-robot] updated from transifex 2021-03-28 02:24:15 +00:00
Nextcloud bot dd99255087
[tx-robot] updated from transifex 2021-03-27 02:24:38 +00:00
Robin Appelman 861fbd06a5 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>
2021-03-26 19:44:28 +00:00
Roeland Jago Douma 785f6c63a0
Merge pull request #26307 from nextcloud/backport/22201/stable21
[stable21] Delete old birthday calendar object when moving contact to another ad…
2021-03-26 10:44:59 +01:00
Roeland Jago Douma d65ce19f6e
Merge pull request #26291 from nextcloud/backport/21484/stable21
[stable21] show better error messages when a file with a forbidden path is encountered
2021-03-26 10:44:43 +01:00
Roeland Jago Douma cc5c93ffb3
Merge pull request #26263 from nextcloud/backport/26046/stable21
[stable21] update icewind/smb to 3.4.0
2021-03-26 10:44:03 +01:00
Roeland Jago Douma 5d8df1bed2 21.0.1 RC1
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-26 10:35:05 +01:00
Christian Weiske 74794bf100 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>
2021-03-26 07:25:44 +00:00
John Molakvoæ 9a4cbba7f6
Merge pull request #26298 from nextcloud/backport/26287/stable21
[stable21] Fix l10n
2021-03-26 08:08:41 +01:00
Nextcloud bot 9ddc6df797
[tx-robot] updated from transifex 2021-03-26 02:25:43 +00:00
Morris Jobke 82f6d632b6
Merge pull request #26301 from nextcloud/backport/26299/stable21
[stable21] Log when a storage is marked as unavailable
2021-03-25 20:33:35 +01:00
Morris Jobke cf8be87e47 Log when a storage is marked as unavailable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-25 16:10:28 +00:00
Valdnet 23ccae6840 Fix l10n
Issue: #26286
2021-03-25 12:58:59 +00:00
Robin Appelman fdf7eb10a2 show better error messages when a file with a forbidden path is encountered
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-25 10:56:59 +00:00
Nextcloud bot 769c6fedad
[tx-robot] updated from transifex 2021-03-25 02:25:48 +00:00
Morris Jobke ffb7c51ca6
Merge pull request #26257 from nextcloud/backport/26198/stable21
[stable21] Handle limit offset and sorting in files search
2021-03-24 17:32:36 +01:00
Morris Jobke f7922bdd0d
Merge pull request #26279 from nextcloud/backport/26255/stable21
[stable21] l10n: Separate ellipsis
2021-03-24 17:14:19 +01:00
Morris Jobke ba9e1c0d1a
Merge pull request #26276 from nextcloud/backport/26265/stable21
[stable21] Fix casing of core test folder, bring back missing tests
2021-03-24 17:13:44 +01:00
Vincent Petry bb7ff7f440
Revert controller tests to match stable21 API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 15:22:35 +01:00
Valdnet 7a7bd29177 l10n: Separate ellipsis
Unifying the text string with the others.
2021-03-24 13:26:48 +00:00
Morris Jobke 88b0b5aa40
Merge pull request #26249 from nextcloud/backport/25529/stable21
[stable21] Fix non LGC glyphs in avatars and txt file previews
2021-03-24 14:20:25 +01:00