Commit graph

20506 commits

Author SHA1 Message Date
Arthur Schiwon
771d38918a
avoid early DI of IAppManager
- might break install

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-28 23:47:00 +02:00
Carl Schwan
334ed35042
Merge pull request #33049 from nextcloud/backport/32982/stable24
[stable24] Fix metadata extraction
2022-06-28 21:46:42 +02:00
Carl Schwan
de4f7b5c9c Fix metadata extraction
The metadata extraction only happens when the size is not equal to 0,
but due to a regression in FileInfo the size is always zero.

This fix the regression.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-28 13:37:59 +00:00
Louis Chemineau
82fea7d000 Rename setting name to reduce its length
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-28 09:55:45 +00:00
Nextcloud bot
ca316d5454
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-28 02:28:38 +00:00
Arthur Schiwon
28eac9c961 load widgets only of enabled apps
- per design, all enabled apps have their registration run
- limitations, e.g. enabled by group, are not considered in that state,
  because we do not have a session (and might need apps?)
- before instantiation of widget it has to be checked whether the providing
  app is actually enabled for the logged in user.
- a public interface is being changed, but it is not meant to be
  implemented or used outside of the core handling. Therefore save to
  backport.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-23 15:48:33 +00:00
Côme Chilliet
fc1258cb1c Improve local domain detection
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-06-23 10:53:49 +00:00
Carl Schwan
b4edbb3af5 Fix hook encryption with cron job
Make sure the setup fs is set before using the Update service

Fix #29674

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-22 22:42:25 +02:00
Thomas Citharel
08035833cf Fix logging data context to file
It was only logged when an exception was provided or when using
logData (which is not being much used).

We make sure the interpolated parameters are not logged.

Only tested with file write logger, but shouldn't work differently.

Crash reporters always had the context.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-22 18:26:25 +00:00
Nextcloud bot
05f11310bb
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-19 02:27:58 +00:00
blizzz
a71d33ad91
Merge pull request #32904 from nextcloud/backport/32898/stable24
[stable24] Fix logger overwriting vars in some circumstances
2022-06-17 14:22:32 +02:00
Nextcloud bot
bab0753507
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-17 02:27:53 +00:00
Arthur Schiwon
6b8d6de4fc make placeholder a const for reuse
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-16 18:38:40 +00:00
Arthur Schiwon
ed4fcf2d17 fix overwriting original vars when logging
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-16 18:38:39 +00:00
Nextcloud bot
944c792cd4
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-14 02:28:25 +00:00
blizzz
a5b13da95b
Merge pull request #32842 from nextcloud/backport/32685/stable24
[stable24] Fix replacing external storage password during debug log
2022-06-13 09:55:02 +02:00
blizzz
a1d570b51a
Merge pull request #32833 from nextcloud/backport/32799/stable24
[stable24] Fix exception handling when profile data is too long
2022-06-13 09:26:47 +02:00
Christoph Wurst
e040734456 Fix replacing external storage password during debug log
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-06-13 06:18:18 +00:00
blizzz
ba27191e03
Merge pull request #32444 from nextcloud/backport/32357/stable24
[stable24] remove storage wrappers when deleting the user storage
2022-06-12 19:54:14 +02:00
Joas Schilling
d328e3cd06
Fix exception handling when profile data is too long
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-06-12 13:46:14 +02:00
Nextcloud bot
8274bb3643
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-12 02:28:02 +00:00
blizzz
eeb4de0763
Merge pull request #32708 from nextcloud/unencrypted-size-24
[24] store unencrypted size in the unencrypted_size column
2022-06-11 00:42:34 +02:00
Robin Appelman
ce23dc3ae6 remove storage wrappers when deleting the user storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-10 15:40:22 +00:00
Vincent Petry
4e870ea41d
Merge pull request #32513 from nextcloud/backport/32496/stable24
[stable24] Fix crop condition
2022-06-10 15:39:32 +02:00
Vincent Petry
ddac16b6ec
Merge pull request #32657 from nextcloud/backport/32655/stable24
[stable24] Handle non existing settings again
2022-06-10 15:31:58 +02:00
Vincent Petry
7ba6738031
Merge pull request #32801 from nextcloud/backport/32797/stable24
[stable24] fix mounts mounted at the users home
2022-06-10 14:47:03 +02:00
Robin Appelman
787b10ba2f perform onetime setup earlier to ensure wrappers are registered on time
this fixes an issue with wrappers like encryption not always being applied to mountpoint that create the storage object directly (such as external storage)

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-10 09:26:14 +00:00
Vincent Petry
3a3c3b5e1d
Merge pull request #32710 from nextcloud/backport/32662/stable24
[stable24] Cleanup temporary files after finishing the write to object storage
2022-06-10 11:09:26 +02:00
Julius Härtl
4da6b1b515 Properly import maintenance script
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-09 23:29:47 +00:00
Robin Appelman
b110026909 fix mounts mounted at the users home
this fixes external storages with '/' as mountpoint

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-09 23:23:16 +00:00
Vincent Petry
254cb7ad0c
Merge pull request #32770 from nextcloud/backport/32697/stable24
[stable24] Fix get avatar authorization
2022-06-09 12:03:03 +02:00
Vincent Petry
7e819852ee
Merge pull request #32776 from nextcloud/backport/32767/stable24
[stable24] handle stream wrappers in SeekableHttpStream
2022-06-09 12:01:59 +02:00
Robin Appelman
00e6eb2612 handle stream wrappers in SeekableHttpStream
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-09 07:58:35 +00:00
Vincent Petry
6ed03a9e6f
Merge pull request #32705 from nextcloud/backport/32690/stable24
[stable24] Trim mount point before matching in encryption code
2022-06-09 09:55:29 +02:00
Vincent Petry
30654d962d
Merge pull request #32752 from nextcloud/backport/32746/stable24
[stable24] Add new share attributes column
2022-06-09 09:54:59 +02:00
Nextcloud bot
270343a602
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-09 02:32:03 +00:00
Christopher Ng
a64b1f77c2 Fix get avatar authorization
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-08 23:31:25 +00:00
Vincent Petry
87d8afcb62 Add new share attributes column
To store more extended permissions in the future.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-06-08 09:21:42 +00:00
Joas Schilling
c6bb631e2f Always log errors from sending federation api requests to ease debugging
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-06-08 09:20:16 +00:00
Robin Appelman
fd2afe604e
store unencrypted size in the unencrypted_size column
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-03 15:43:50 +02:00
Pytal
4ca4228ff6
Merge pull request #32664 from nextcloud/backport/32206/stable24 2022-06-02 11:32:31 -07:00
Julius Härtl
109bbf31db Cleanup temporary files after finishing the write to object storage
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-02 16:28:20 +00:00
Vincent Petry
1803121428 Trim mount point before matching in encryption code
Often times the mount point has a leading slash.
This fix sanitizes it to make sure matching works.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-06-02 12:02:22 +00:00
blizzz
ffaa474514
Merge pull request #32677 from nextcloud/backport/32592/stable24
[stable24] allow use of rememberme cookies for IApacheAuth backends
2022-06-01 12:25:21 +02:00
John Molakvoæ
e7ddf60bab
Merge pull request #32510 from nextcloud/fix/theming-colours-primary-24 2022-06-01 07:39:16 +02:00
Nextcloud bot
cdaf80809f
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-06-01 02:32:36 +00:00
Arthur Schiwon
e395912b0b allow use of rememberme cookies for IApacheAuth backends
- e.g. enables it for SAML backend

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-05-31 21:59:20 +00:00
John Molakvoæ
20efadff5f Properly calculate primary element based on background luminance
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-05-31 17:27:12 +00:00
Nextcloud bot
4b2bac3016
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-31 02:33:16 +00:00
Côme Chilliet
5a7752dcfa Add the ISizeEstimationMigrator interface for method getExportEstimatedSize
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Côme Chilliet
dde192da4a Implement getExportEstimatedSize in migrators
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Côme Chilliet
c16b72f588 Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Carl Schwan
616464b699 Handle non existing settings again
See https://github.com/nextcloud/server/pull/28189#issuecomment-1140874991

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-30 10:57:54 +00:00
Nextcloud bot
f976a67408
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-29 02:33:34 +00:00
Git'Fellow
95147218d1 Move Gd failed operations to debug level
Instead of error
2022-05-27 09:34:49 +00:00
Nextcloud bot
a15652aaf7
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-25 02:36:13 +00:00
Nextcloud bot
1ce6592f63
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-24 02:33:01 +00:00
Nextcloud bot
c625bb0c56
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-23 02:31:13 +00:00
Carl Schwan
634a15ab71 Fix crop condition
Make sure that when fetching the image from the cache we don't
accidentally fetch the cropped image just because it also start with
256-256

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-20 11:03:15 +00:00
Nextcloud bot
74f26cc89e
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-19 02:32:33 +00:00
blizzz
ee89136c9a
Merge pull request #32424 from nextcloud/backport/32382/stable24
[stable24] only log diagnostic events if a treshhold is set
2022-05-16 23:41:10 +02:00
blizzz
4efd0cdadf
Merge pull request #32123 from nextcloud/backport/32074/stable24
[stable24] tell mysql to ignore the sort index for search queries
2022-05-16 23:36:57 +02:00
Joas Schilling
762d1ff050
Merge pull request #32414 from nextcloud/backport/32305/stable24
[stable24] Fix user agent trimming on installation
2022-05-16 15:56:48 +02:00
Robin Appelman
30b0a0272b
only log diagnostic events if a treshhold is set
this prevents log spam and it's rare that you actually want to very short events logged anyway

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-05-16 14:33:49 +02:00
blizzz
5e7d10aa8c
Merge pull request #32320 from nextcloud/backport/32315/stable24
[stable24] Fix preview generator trying to recreate an existing folder
2022-05-16 11:55:14 +02:00
Robin Appelman
32cd1bed38 tell mysql to ignore the sort index for search queries
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-05-16 09:53:43 +00:00
blizzz
525206d6d3
Merge pull request #32256 from nextcloud/backport/32220/stable24
[stable24] Include more emoji chars to test and fixes after include it
2022-05-16 11:52:49 +02:00
blizzz
5b4df735ec
Merge pull request #32159 from nextcloud/backport/32155/stable24
[stable24] Fx translations with trailing colon
2022-05-16 11:50:51 +02:00
Joas Schilling
a397614a8d Fix user agent trimming on installation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-16 09:32:17 +00:00
John Molakvoæ
f02ccc6d29
Merge pull request #32360 from nextcloud/backport/stable24/share_search_tweaks 2022-05-13 20:15:26 +02:00
Robin Appelman
cc4aab14d7 don't unjail the path when getting the storage info
the original reason for adding it no longer exist.

This was added with #30985 since then the share source storage was also used, however this was changed with #32076

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-05-12 19:02:45 +00:00
Louis Chemineau
37a9a6246f Add setting to ignore email during search
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-12 15:05:13 +02:00
Louis Chemineau
11bd644251 Use email settings in DAV search
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-12 15:05:10 +02:00
Louis Chemineau
55fda0b769 Use share setting in DAV search
shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-12 15:05:05 +02:00
Richard Steinmetz
8fcef8848a Fix preview generator trying to recreate an existing folder
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-05-10 08:14:40 +00:00
Nextcloud bot
4b97259401
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-10 02:36:36 +00:00
Nextcloud bot
ba927cd185
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-09 02:29:04 +00:00
Nextcloud bot
14b9b6b60b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-08 02:29:01 +00:00
Nextcloud bot
414725145b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-06 02:28:49 +00:00
Joas Schilling
2232ff3eb1
Merge pull request #32241 from nextcloud/revert-32239-revert-32214-backport/32212/stable24
Revert "Revert "[stable24] Make the order of reactions reliable""
2022-05-05 18:57:15 +02:00
Nextcloud bot
e295f5a4a2
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-05 02:28:40 +00:00
blizzz
ee28bf89ba
Merge pull request #32236 from nextcloud/backport/31758/stable24
[stable24] Use sabre function directly rather than duplicating it
2022-05-04 14:46:44 +02:00
Nextcloud bot
c14b3004ee
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-04 02:30:46 +00:00
Vitor Mattos
37a04e6a8b
Include more emoji chars to test and fixes after include it
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-05-03 12:58:05 -03:00
Nextcloud bot
10ea56bfe6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-03 02:29:02 +00:00
blizzz
f44f022483
Revert "Revert "[stable24] Make the order of reactions reliable"" 2022-05-02 15:32:35 +02:00
blizzz
929c0f80e0
Merge pull request #32239 from nextcloud/revert-32214-backport/32212/stable24
Revert "[stable24] Make the order of reactions reliable"
2022-05-02 15:32:27 +02:00
Nextcloud bot
82dc13c3af
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-02 13:12:51 +00:00
blizzz
dde611b3ed
Revert "[stable24] Make the order of reactions reliable" 2022-05-02 14:46:24 +02:00
Côme Chilliet
03132f71c0
Trying without the use
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:25:20 +02:00
Côme Chilliet
281751e264
Use sabre function directly rather than duplicating it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:25:08 +02:00
Joas Schilling
b806e1f009 Make the order of reactions reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-28 17:43:22 +00:00
Joas Schilling
d1dc2a18ee Fix translations with trailing colons
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-26 11:41:15 +00:00
Robin Appelman
aae1769e60 Only need to setup root for groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-25 17:39:29 +00:00
Vincent Petry
ff64a731b0
Merge pull request #32138 from nextcloud/stable24-directory-listing-optimize-add-submount
[stable24] optimize adding submount info to directory content
2022-04-25 19:33:58 +02:00
Carl Schwan
1bb4d7853f
Merge pull request #32134 from nextcloud/backport/32033/stable24
[stable24] Fix scanning app data with metadata
2022-04-25 18:56:52 +02:00
Robin Appelman
9dcc9b50e9
optimize adding submount info to directory content
no need to loop when we can do a hashtable lookup

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-25 16:28:05 +02:00
Vincent Petry
af4258436b
Merge pull request #32118 from nextcloud/backport/32082/stable24
[stable24] use a lazy user for the file owner when listing a directory
2022-04-25 16:27:28 +02:00
Vincent Petry
bce6549588
Merge pull request #32087 from nextcloud/backport/32076/stable24
[stable24] use and cache root storage info if a share can't be resolved
2022-04-25 16:26:11 +02:00
Vincent Petry
59bff4746f
Merge pull request #32119 from nextcloud/backport/32112/stable24
[stable24] Add missing index for oc_mounts queries
2022-04-25 16:25:51 +02:00