Commit Graph

57468 Commits

Author SHA1 Message Date
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
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
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
Morris Jobke e5dc0b7ad1
Merge pull request #26271 from nextcloud/backport/26270/stable21
[stable21] Catch invalid cache source storage path
2021-03-24 14:09:03 +01:00
Vincent Petry 447ccc1e55 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>
2021-03-24 12:38:52 +00:00
Vincent Petry bad3243944 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>
2021-03-24 12:38:52 +00:00
Vincent Petry 3e815f555d Fix more controller tests in Core subdir
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 12:38:52 +00:00
Vincent Petry 365c99b0be Fix more tests in the Core subdir
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 12:38:51 +00:00
Vincent Petry 2c4b21b2fc Fix core tests command for app enabling/disabling
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 12:38:51 +00:00
Vincent Petry 544ea63613 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>
2021-03-24 12:38:51 +00:00
John Molakvoæ (skjnldsv) e9fafce71b Catch invalid cache source storage path
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-24 11:03:30 +00:00
Nextcloud bot ef273fef4b
[tx-robot] updated from transifex 2021-03-24 02:25:17 +00:00
Robin Appelman 03c430868a update icewind/smb to 3.4.0
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 16:23:53 +00:00
Robin Appelman 5a1ae2c3c0 use node search api for legacy file search endpoint
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:22 +00:00
Robin Appelman 2c565d68bc pass order from unified search to file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:21 +00:00
Robin Appelman d4381c0eac handle ordering in folder search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:18 +00:00
Robin Appelman 8551ee079d folder filtering in sql
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:16 +00:00
Robin Appelman 277c0039f6 cleanup fileinfo creation
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:13 +00:00
Robin Appelman c8679885f6 format
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:12 +00:00
Robin Appelman 423e1581e0 handle limit and offset in folder file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:12 +00:00
Robin Appelman 2500d296c5 only require user to be set in a query that handles tags
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:11 +00:00
Robin Appelman d2245734d4 unify handling of Folder::search methods into "new" query objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:11 +00:00
Robin Appelman 680e21b7c5 use "newer" node search api directly in unified search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 13:41:10 +00:00
Nextcloud bot c60f0e06d0
[tx-robot] updated from transifex 2021-03-23 02:24:15 +00:00
Daniel Calviño Sánchez e6ee498f88 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>
2021-03-22 20:07:59 +00:00
Daniel Calviño Sánchez 4cb539bf09 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>
2021-03-22 20:07:58 +00:00
Morris Jobke a07e171df7
Merge pull request #26177 from nextcloud/backport/26161/stable21
[stable21] Improve search results when only phonebook-matches can we autocompleted
2021-03-22 21:02:43 +01:00
Roeland Jago Douma e12e2ae8a3 Make psalm happy
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-22 20:20:29 +01:00
Joas Schilling 3fd9d0dc50 Also limit to user group in case enumeration is enabled for groups and phonenumbers
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 20:07:53 +01:00
Joas Schilling e9ea4a0f01 Fix parameter types in docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 20:07:53 +01:00
Joas Schilling f2acf492cf Add missing index on the user column
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 20:07:53 +01:00
Joas Schilling 553a25e1a1 Improve search results when only phonebook-matches can we autocompleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 20:07:53 +01:00