Commit graph

19686 commits

Author SHA1 Message Date
blizzz
da4cd47753
Merge pull request #31122 from nextcloud/backport/30945/stable22
[stable22] Background job time windows
2022-03-10 14:53:53 +01:00
blizzz
06600f6036
Merge pull request #29565 from nextcloud/backport/25332/stable22
[stable22] Fix removing remote shares when the remote server is unreachable
2022-03-10 14:38:40 +01:00
Joas Schilling
557afa7c1a
Adjust since version
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-10 13:47:05 +01:00
Robin Appelman
b2eac88482 use persistent connections when connecting to redis
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-04 12:48:09 +00:00
Christopher Ng
2494bb6590 Fix avatar file return type
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-04 04:31:50 +00:00
Carl Schwan
5d6be7fda5
Merge pull request #31243 from nextcloud/backport/31141/stable22
[stable22] Improve caching policy use immutable when loading versionned assets
2022-03-02 12:40:12 -05:00
blizzz
55a61baaa1
Merge pull request #31400 from nextcloud/backport/31390/stable22
[stable22] Censor more configs
2022-03-02 17:39:44 +01:00
Joas Schilling
1831c5cb6b Also use hashed/indexed column on delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-02 11:26:26 +00:00
Joas Schilling
8c875e7694 Censor more configs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-02 10:29:51 +00:00
Nextcloud bot
0e57419a4d
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-24 02:26:57 +00:00
Nextcloud bot
25ec0ccaea
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-23 02:28:08 +00:00
Joas Schilling
714a5b7ae2
Use the new option to signaling insensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-22 11:56:18 +01:00
Joas Schilling
c43730238f
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-22 11:56:17 +01:00
Joas Schilling
26990666cb
Merge pull request #31298 from nextcloud/backport/31217/stable22
[stable22] Also cache non-existing to reuse it
2022-02-22 11:48:55 +01:00
Nextcloud bot
400c0bf304
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-22 02:29:35 +00:00
Joas Schilling
ee0ed229e3 Also cache non-existing to reuse it
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-21 11:10:50 +00:00
Claus-Justus Heine
c31adf12b9 Use the unjailed-path in OC_Helper::getStorageInfo() for files located in SharedStorage.
The current implementation already switches the storage-backend to
$storage->getSourceStorage(). However, it then calls
$rootInfo->getInternalPath() which returns the internal path relative to
the storage where the share is mounted. This is wrong, we need also to
unjail the path. Compare, e.g., with
OCA\Files_Sharing\SharedStorage::file_get/put_contents() for the
"logic".

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2022-02-18 15:46:35 +00:00
Vincent Petry
806d702458
Merge pull request #30958 from nextcloud/backport/30949/stable22
[stable22] Allow to disable AuthToken v1
2022-02-18 14:34:09 +01:00
Carl Schwan
1da8fe529f Improve caching policy
* Cache css with version in url. This makes most js and css requests to
  be cached by the browser

* Force caching previews, the etag is in the url so that if the propfind
  gives a new etag, we will refresh it otherwise it's no use to try to
  fetch the new etag and do tons of DB queries

Tested with firefox and 'debug' => false (important so that the js/css
urls are generated with ?v= parameter)

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-18 14:29:36 +01:00
Vincent Petry
5ecf7be040
Merge pull request #31060 from nextcloud/backport/30973/stable22
[stable22] Allow specify a config prefix for another database connection
2022-02-18 12:08:58 +01:00
Joas Schilling
3f42547b01 Allow to get custom loggers for syslog, errorlog and systemdlog too
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-16 13:52:20 +00:00
Nextcloud bot
55fd30729e
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-16 02:27:54 +00:00
Joas Schilling
5e8dd12926 Allow specify a config prefix for another database connection
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-07 14:35:54 +00:00
Nextcloud bot
39da6a585a
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-05 02:26:42 +00:00
Nextcloud bot
40b2a0f54d
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-03 02:27:07 +00:00
Jonas Meurer
418473be4b
Fix preview generation for office documents
`new \imagick()` returns an object, but we need the image blob (binary
string) from this object.

This is a partial backport of #26531, which brings a lot of refactoring
but also contains the fix.

Fixes: #29956

Signed-off-by: Jonas Meurer <jonas@freesources.org>
2022-02-02 12:02:04 +01:00
Joas Schilling
83c1d1ef3a
Allow to disable AuthToken v1
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-01 14:31:51 +01:00
Carl Schwan
8330b18bfe
Fix psalm warning related to registerEventListener
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-29 11:47:53 +01:00
John Molakvoæ
c0b29720e1
Merge pull request #30826 from nextcloud/backport/stable22/psalm-fix 2022-01-27 20:05:54 +01:00
Carl Schwan
57514e44a9
Psalm fixing
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-27 17:20:48 +01:00
John Molakvoæ
fa2ac9362e
Merge pull request #30741 from nextcloud/backport22 2022-01-27 09:26:53 +01:00
Carl Schwan
0262cc33d7
Fix psalm
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-24 13:34:48 +01:00
Nextcloud bot
81c4d00b70
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-24 02:26:51 +00:00
John Molakvoæ
44c1403708
Merge pull request #30774 from nextcloud/backport/30769/stable22 2022-01-22 10:25:41 +01:00
Nextcloud bot
7acd13d002
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-22 02:26:44 +00:00
Julius Härtl
dc21554b52
Add hashed attribute column for indexed job existence check
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-20 22:37:42 +01:00
John Molakvoæ
b6415ad8bf
Revert "[stable22] Hash job argument" 2022-01-20 21:10:43 +01:00
Côme Chilliet
3f3908b72a Always call flush() as getAllKeys() is broken
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-20 15:43:34 +00:00
John Molakvoæ
92fcdc3509
Merge pull request #30727 from nextcloud/backport/30614/stable22 2022-01-20 15:45:22 +01:00
John Molakvoæ
fd1bcd434c
Merge pull request #30760 from nextcloud/backport/30731/stable22 2022-01-20 10:35:07 +01:00
John Molakvoæ
4cf937ad81
Merge pull request #29799 from nextcloud/stable22-disk 2022-01-20 10:33:45 +01:00
Joas Schilling
8db890a621 Log bruteforce throttle and blocking
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-19 11:51:56 +00:00
Christopher Ng
e35bb236fb Update autoload
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-01-19 02:20:25 +00:00
acsfer
3b831e4842
[stable22] Increase email main buttons width for non-english languages
Manual backport of https://github.com/nextcloud/server/pull/30653
2022-01-18 16:03:09 +01:00
Julius Härtl
5bda5e5d95
Add hashed attribute column for indexed job existence check
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-18 15:13:11 +01:00
Marek-Wojtowicz
457bb9b8ef Update Session.php
The http headers according to rfc 2616 is iso-8859-1. This patch fixes the behavior when non-ascii characters are present in the header.

Signed-off-by: Marek Wójtowicz <Marek.Wojtowicz@agh.edu.pl>
2022-01-17 23:23:08 +00:00
acsfer
ad5ea4eb06 [stable22] Check for disk_free_space
Backport of https://github.com/nextcloud/server/pull/29758
2022-01-17 19:56:35 +00:00
Jonas
293e5550e9
Merge pull request #30694 from nextcloud/backport/30631/stable22
[stable22] updateEncryptedVersion: cleanup on target if cache already got renamed
2022-01-16 10:20:12 +01:00
Jonas Meurer
5d1157c37c
updateEncryptedVersion: cleanup on target if cache already got renamed
When moving a file to trash with encryption enabled, the cache gets
moved before the actual file. According to @icewind1991 this is in order
to not break object storage.

When moving a file from an unencrypted storage (e.g. a collectives
storage) to the encrypted trashbin storage, this causes errors, see

This commit fixes it by doing `updateEncryptedVersion()` on the target
cache entry *if* the source cache entry doesn't exist anymore, but the
corresponding target cache entry does exist already.

Fixes: #26544

Signed-off-by: Jonas Meurer <jonas@freesources.org>
2022-01-15 13:40:01 +01:00
Nextcloud bot
6d305cb8aa
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-15 02:27:18 +00:00