Commit Graph

54656 Commits

Author SHA1 Message Date
Nextcloud bot 2a7a9b80a0
[tx-robot] updated from transifex 2021-03-28 02:24:31 +00:00
Nextcloud bot 4e96d9a63a
[tx-robot] updated from transifex 2021-03-27 02:24:55 +00:00
Morris Jobke d2049abae2
Merge pull request #26306 from nextcloud/backport/22201/stable19
[stable19] Delete old birthday calendar object when moving contact to another ad…
2021-03-26 11:11:59 +01:00
Christian Weiske 0e88470b75 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:22:56 +00:00
John Molakvoæ 5c737b73af
Merge pull request #26296 from nextcloud/backport/26287/stable19
[stable19] Fix l10n
2021-03-26 08:09:07 +01:00
Nextcloud bot 79a5ba1992
[tx-robot] updated from transifex 2021-03-26 02:26:01 +00:00
Valdnet 8771e7c98c Fix l10n
Issue: #26286
2021-03-25 12:58:43 +00:00
Nextcloud bot 7ae4b6b0aa
[tx-robot] updated from transifex 2021-03-25 02:26:05 +00:00
Morris Jobke e2cb0a8ff2
Merge pull request #26277 from nextcloud/backport/26255/stable19
[stable19] l10n: Separate ellipsis
2021-03-24 17:14:05 +01:00
Valdnet e14cb5a20b l10n: Separate ellipsis
Unifying the text string with the others.
2021-03-24 13:26:46 +00:00
Morris Jobke 522882496f
Merge pull request #26273 from nextcloud/backport/26270/stable19
[stable19] Catch invalid cache source storage path
2021-03-24 14:09:07 +01:00
John Molakvoæ (skjnldsv) c74a10ddb4 Catch invalid cache source storage path
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-24 11:07:34 +00:00
Nextcloud bot eeea77112e
[tx-robot] updated from transifex 2021-03-24 02:25:33 +00:00
Nextcloud bot bc5e51af7e
[tx-robot] updated from transifex 2021-03-23 02:24:33 +00:00
John Molakvoæ 6b1fe290d1
Merge pull request #26240 from nextcloud/backport/26231/stable19 2021-03-22 13:55:31 +01:00
Valdnet 175d1d35ba l10n: Add changes to text string for user 2021-03-22 10:30:57 +00:00
Valdnet 01f84ddd13 l10n: Add word user in ShareByMailProvider.php
Standardizing text strings with other Nextcloud applications.
2021-03-22 10:30:56 +00:00
Nextcloud bot 6365e59aa9
[tx-robot] updated from transifex 2021-03-22 02:24:13 +00:00
Nextcloud bot def34fbfce
[tx-robot] updated from transifex 2021-03-21 02:23:36 +00:00
Roeland Jago Douma 9b23da22c0
Merge pull request #26216 from nextcloud/backport/26145/stable19
[stable19] add (hidden) option to always show smb root as writable
2021-03-20 10:53:45 +01:00
Nextcloud bot a4d6201d7e
[tx-robot] updated from transifex 2021-03-20 02:24:08 +00:00
Robin Appelman ec0ca19deb 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>
2021-03-19 15:47:09 +00:00
Morris Jobke ceed64154f
Merge pull request #26148 from nextcloud/backport/26013/stable19
[stable19] Return the fileid from `copyFromCache` and use it instead of doing an extra query
2021-03-19 15:29:14 +01:00
Morris Jobke 64cfaf9a48
Merge pull request #26206 from nextcloud/backport/26200/stable19
[stable19] Update user share must use correct expiration validation
2021-03-19 15:20:30 +01:00
Vincent Petry ecaa02678a
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>
2021-03-19 11:07:04 +01:00
Nextcloud bot 8670ef707f
[tx-robot] updated from transifex 2021-03-19 02:25:21 +00:00
Roeland Jago Douma 835d29a29e
Merge pull request #26095 from nextcloud/dependabot/npm_and_yarn/stable19/yargs-parser-5.0.1
[Security] Bump yargs-parser from 5.0.0 to 5.0.1
2021-03-18 19:39:25 +01:00
dependabot-preview[bot] 98eeceba52
[Security] Bump yargs-parser from 5.0.0 to 5.0.1
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 5.0.0 to 5.0.1. **This update includes a security fix.**
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/v5.0.1/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs-parser/compare/v5.0.0...v5.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-18 15:22:49 +00:00
Morris Jobke eb749b3802
Merge pull request #26073 from nextcloud/search-file-limit-results-19
[19] limit constructing of result objects in file search
2021-03-18 13:54:10 +01:00
Morris Jobke 277994040c
Merge pull request #26191 from nextcloud/backport/25331/stable19
[stable19] Fix valid storages removed when cleaning remote storages
2021-03-18 13:09:05 +01:00
Daniel Calviño Sánchez 05cbdddb0d 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>
2021-03-18 08:02:28 +00:00
Daniel Calviño Sánchez 1e7e6c900c Add integration tests for "sharing:cleanup-remote-storages" OCC command
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-18 08:02:26 +00:00
Robin Appelman df77c7d37c
limit constructing of result objects in file search
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects.

this saves about 40% of the time spend in the search request in my local testing

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 08:23:16 +01:00
Nextcloud bot 0e30c82f30
[tx-robot] updated from transifex 2021-03-18 02:25:29 +00:00
Morris Jobke f302616544
Merge pull request #26092 from nextcloud/backport/25722/stable19
[stable19] apply object store copy optimization when 'cross storage' copy is wit…
2021-03-17 20:09:11 +01:00
Morris Jobke 9176410018
Merge pull request #26169 from nextcloud/backport/26072/stable19
[stable19] remove explicit fclose from S3->writeStream
2021-03-17 13:46:24 +01:00
kesselb 21b67e3b5b
Merge pull request #26164 from nextcloud/backport/26153/stable19
[stable19] Use correct exception type hint in catch statement
2021-03-17 11:08:46 +01:00
Robin Appelman 68fb72b028 remove explicit fclose from S3->writeStream
streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-17 09:36:15 +00:00
Morris Jobke 10b024642f Use correct exception type hint in catch statement
Found by psalm update 4.6.2 to 4.6.3 in #26111

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-17 08:49:42 +00:00
Nextcloud bot 709788e08f
[tx-robot] updated from transifex 2021-03-17 02:24:47 +00:00
kesselb 8daf30e278
Merge pull request #26135 from nextcloud/backport/25136/stable19
[stable19] do cachejail search filtering in sql
2021-03-16 17:41:19 +01:00
Robin Appelman 300c4dd6b8 verify that cache entry is valid
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 16:18:13 +00:00
Robin Appelman 53dcc7b1ca also implement for FailedCache and NullCache
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 16:18:11 +00:00
Robin Appelman cc1a5d5ced use returned file id for object store copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 16:18:09 +00:00
Robin Appelman 603ec9be0c add ICopyFromCache trait to expose existing implementation
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 16:18:06 +00:00
Robin Appelman b2903064c9
only use share cacheentry when available
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:27:00 +01:00
Robin Appelman 1d1d4de991
adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:27:00 +01:00
Robin Appelman b9b2c6d2fa
fix search in nested jails
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:27:00 +01:00
Robin Appelman 75a48fbc2a
fix cachjail searching for root
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:26:59 +01:00
Robin Appelman 564390e303
do cachejail search filtering in sql
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:26:59 +01:00