Ferdinand Thiessen
08836696e2
fix: Allow read-only filename validation to allow reading files
...
Needed to read files with the "Windows compatibility" feature.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-28 17:22:20 +07:00
Ferdinand Thiessen
030c209d22
fix: Renaming does not need update but delete permissions
...
Renaming is basically copy + delete (a move), so no need to update permissions.
Especially if the node is in a invalid directory the node should be moveable but not editable.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-28 17:22:20 +07:00
Ferdinand Thiessen
0d41c49918
fix(dav): Pre-check if node can be copied or moved in DAV files plugin
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-28 17:22:20 +07:00
Louis Chemineau
ac1d8cdbef
feat: Delegate is-encrypted handling to the e2ee app
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-08-26 19:45:30 +07:00
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Ferdinand Thiessen
4bbcbc5206
feat: Make `ISharedStorage` public API and reuse where possible
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-12 11:42:10 +07:00
Ferdinand Thiessen
cb1b366baf
fix(dav): Ensure share properties are also set on public remote endpoint
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-12 11:28:03 +07:00
Robin Appelman
d5a2a4aa87
fix: keep previous exception when wrapping dav exceptions
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-07-23 14:23:26 +07:00
Richard Steinmetz
cbea787233
fix(caldav): stricter default calendar checks
...
Reject calendars that
- are subscriptions
- are not writable
- are shared with a user
- are deleted
- don't support VEVENTs
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-07-22 15:24:39 +07:00
Andy Scherzinger
2e273e477a
Merge pull request #46225 from nextcloud/fix/issue-11633
...
fix(dav): Thrown forbidden error for authenticated user instead of no…
2024-07-19 18:59:58 +07:00
Ferdinand Thiessen
322b3946d9
fix(dav): Verify target path in `setName` instead of source path
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-16 12:57:11 +07:00
SebastianKrupinski
f5fcfb4670
fix(dav): Thrown forbidden error for authenticated user instead of not found
...
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
2024-07-10 17:58:02 +07:00
Julius Härtl
4d6b4b71c7
fix: Authorization header can be an empty string
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-06-28 14:42:36 +07:00
Julius Härtl
637a91e767
Merge pull request #45973 from nextcloud/remove-chunking-v1
...
chore: remove chunking-v1
2024-06-24 09:52:18 +07:00
Robin Appelman
957a00b9de
chore: remove chunking-v1
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-06-19 16:57:42 +07:00
Ferdinand Thiessen
67a0e01382
fix(dav): Try basic auth for ajax WebDAV requests
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-18 10:47:11 +07:00
skjnldsv
4a77fe3530
fix(dav): also return shared-with-me shares data
...
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-06-12 10:27:29 +07:00
Ferdinand Thiessen
9d0200ca6b
Merge pull request #45120 from nextcloud/bugfix/noid/sensitive-dav-forbidden-logging
...
fix(dav): Don't log access control as error
2024-06-10 11:56:33 +07:00
Andy Scherzinger
9d4b944098
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-27 20:11:22 +07:00
Daniel Kesselberg
e210043ee9
feat(caldav): expose calendar subscriptions
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-05-07 16:03:33 +07:00
Joas Schilling
89bce5c76e
fix(dav): Don't log access control as error
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-30 13:46:50 +07:00
Côme Chilliet
d2de3e9981
fix: Fix incorrect phpdoc typing in dav app
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-30 09:24:00 +07:00
Joas Schilling
d2c9cf4b5f
fix(DAV): Migrate known exceptions to Sabre exceptions when copying
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-24 07:18:47 +07:00
Côme Chilliet
9aa7225ed3
Merge pull request #44332 from nextcloud/fix/fix-chunkupload-quota-check
...
fix(dav): Fix quota check for chunk upload
2024-04-02 17:44:21 +07:00
Côme Chilliet
81319e78bf
chore: Improve phpdoc typing to silence psalm errors
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:21 +07:00
Côme Chilliet
ec5133b739
fix: Apply new coding standard to all files
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:21 +07:00
Côme Chilliet
516fb702c9
fix(dav): Fix quota check for chunk upload
...
Do not ignore OC-Total-Length when Content-Length and
X-Expected-Entity-Length are missing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:13 +07:00
Maxence Lange
3fa5e598a8
feat(metadata): get deprecated status using file etag
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-03-07 12:49:06 +07:00
Robin Appelman
e7a7b4a401
perf: switch places that always use the first getById result to getFirstNodeById
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-04 13:57:31 +07:00
Richard Steinmetz
53ef6c5f71
feat(dav): update a principal's schedule-default-calendar-URL
...
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-02-28 14:51:10 +07:00
John Molakvoæ
b91fb12258
Merge pull request #39214 from shdehnavi/replace_substr_calls_in_dav_app
2024-02-23 21:29:15 +07:00
John Molakvoæ
db9fd9439e
Merge pull request #42459 from nextcloud/fix/dav/fallback-realm
2024-02-23 19:42:41 +07:00
Hamid Dehnavi
7bf31df0bc
Refactors "substr" calls to improve code readability
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 15:54:10 +07:00
Louis Chemineau
8e95d0f3ae
Check share attributes when downloading versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-21 15:06:01 +07:00
Richard Steinmetz
8cce736dcb
perf: skip request without read permission
...
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-02-19 20:44:17 +07:00
Anna Larch
dce69154ba
enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and calendars)
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-02-15 18:01:12 +07:00
MichaIng
91127edcc8
fix(dav): fallback realm for HTTP authentication
...
By default, the name of the Nextcloud instance is an empty string, until changed by the admin. This leads to an empty realm sent with the WWW-Authenticate header, while the realm is mandatory for Basic HTTP authentication. Some clients have issues with an empty realm, e.g. Thunderbird cannot store passwords in this case.
This commit applies "Nextcloud" as fallback for the realm, in case the name of the Nextcloud instance is not set.
Solves: https://help.nextcloud.com/t/thunderbird-dont-save-caldav-password-because-of-missing-httprealm-or-formsubmiturl/93233
Signed-off-by: MichaIng <micha@dietpi.com>
2024-02-14 16:49:39 +07:00
John Molakvoæ
6cf4fe19a0
fix(files): add mount root property and adjust delete wording
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-06 17:43:35 +07:00
John Molakvoæ
9703b1da41
fix(quota): automatically detect chunk quota with `OC-Total-Length` header
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-01-10 13:26:25 +07:00
John Molakvoæ
82b5a19a35
fix: public dav and files_sharing testing fixes
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-01-09 10:56:14 +07:00
John Molakvoæ
7b6a650b6e
feat: public dav endpoint v2
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-01-09 10:56:06 +07:00
Louis Chemineau
6948c074e9
Use FileInfo's metadata for hidden prop
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-12-19 10:23:28 +07:00
John Molakvoæ
f89ef392b3
fix(files): better upload error handling
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-12-05 12:10:39 +07:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Maxence Lange
847c687a06
metadata must be set as editable for PROPPATCH
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-14 14:38:53 +07:00
Louis Chemineau
1c84139fa6
Hide .mov for live photos
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-09 22:39:52 +07:00
Louis Chemineau
d3a313f192
Support getting and setting metadata in DAV requests
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-08 16:23:53 +07:00
Maxence Lange
e62e9e3dbf
IFilesMetadata
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 00:21:38 +07:00
John Molakvoæ
63da44bb0e
fix(dav): report status
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2023-09-18 11:29:15 +07:00
Christoph Wurst
9627176a23
Merge pull request #38610 from fsamapoor/replace_strpos_calls_in_dav_app
...
Refactors "strpos" calls in /apps/dav
2023-09-17 10:14:20 +07:00