aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* feat(files_sharing): add WebDAV property for the `hide-download` state of sharesFerdinand Thiessen2 days1-2/+15
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #51845 from nextcloud/zip-download-no-sabre-responseFerdinand Thiessen2025-04-011-0/+17
|\ | | | | fix: don't have sabre/dav send it's own reponse if we already send the zip response
| * fix: don't have sabre/dav send it's own reponse if we already send the zip ↵zip-download-no-sabre-responseRobin Appelman2025-04-011-0/+17
| | | | | | | | | | | | response Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(oauth2): retain support for legacy ownCloud clientsfix/oauth2/retain-legacy-oc-client-supportRichard Steinmetz2025-04-011-0/+10
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(dav): Give proper HTTP status code on MKCOL when quota exceededfix/mkcol-quota-exceeded-responseMarcel Klehr2025-03-311-1/+33
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(dav): do not require CSRF for safe and indempotent HTTP methodsfix/dav-csrfFerdinand Thiessen2025-03-131-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Support deleting metadata from WebDAVartonge/feat/allow_deleting_metadataLouis Chemineau2025-03-041-0/+6
| | | | | | The `$value` will be `null` if the update is wrapped inside a `<d:remove>...</d:remove>` block. Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(dav): Handle end of stream in `File::put`fix/dav-harden-stream-handlingFerdinand Thiessen2025-02-181-16/+11
| | | | | | | | If the stream is aborted and the callback wrapper returns false (or null as it happened in some cases), we should not try to write to the storage but abort the operation. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-134-27/+36
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: re-apply current rector configuration to apps folderCôme Chilliet2025-02-132-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUserCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: use relative paths for upload locksbug/48678/restore-dav-error-response-2Robin Appelman2025-02-111-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Replace the TypeError to prevent exposing the installation pathDaniel Kesselberg2025-02-111-10/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: block moving files to it's own parent with davblock-dav-move-parentRobin Appelman2025-01-031-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: Use Http framework where possibleuseHttpFrameworkGit'Fellow2024-12-146-18/+21
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #48612 from nextcloud/fix/activity-log-for-favorites-in-davJulius Knorr2024-12-122-2/+6
|\ | | | | add activity logging for favorites in dav
| * refactor(tags): move favorite event dispatching to tags.phpgrnd-alt2024-12-031-4/+0
| | | | | | | | Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
| * fix(dav): add activity logging for favorites in davgrnd-alt2024-12-032-2/+10
| | | | | | | | Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
* | fix: log which file cannot be openedRobin Appelman2024-12-041-2/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: Throw exception when copy failedLouis Chemineau2024-12-041-1/+7
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(config): set min supported desktop to `2.7.0`John Molakvoæ2024-11-271-1/+1
| | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(config): add `maximum.supported.desktop.version`skjnldsv2024-11-271-3/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Re-throwing the TypeError to prevent exposing the installation pathbug/48678/restore-dav-error-responseDaniel Kesselberg2024-11-221-0/+92
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Revert "fix(dav): Always respond custom error page on exceptions"Daniel Kesselberg2024-11-221-2/+4
| | | | | | This reverts commit 9992e7d4395a773fec7148cf5b4111f894cb40b7. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Revert "fix: Override start method of \Sabre\DAV\Server to remove exception ↵Daniel Kesselberg2024-11-221-23/+0
| | | | | | | | output" This reverts commit e202896a7476f6c3ad74793e6524293fd8a93224. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(Federation): Show some icon for federated users on sharesfenn-cs2024-11-091-0/+7
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix: smuggle storage id to metadata insert queriesRobin Appelman2024-11-071-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(psalm): Fix some newly detected issuesrefactor/apps/constructor-property-promotionprovokateurin2024-10-211-4/+0
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-2122-264/+132
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-1515-77/+95
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): Emit `BeforeZipCreatedEvent` when creating folder zip archivefix/bring-back-zip-eventFerdinand Thiessen2024-09-292-36/+37
| | | | | | This is required to not break behavior on zip download (apps should be able to react to zip download especially for shares). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(dav): New `ZipFolderPlugin` which allows to download folders using GET ↵Ferdinand Thiessen2024-09-282-0/+160
| | | | | | requests Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-203-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-196-7/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Override start method of \Sabre\DAV\Server to remove exception outputartonge/fix/remove_unnecessary_formatingLouis Chemineau2024-09-181-0/+23
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-6/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #48031 from nextcloud/fix/filesreport-cast-fileId-to-intAnna2024-09-161-1/+1
|\ | | | | fix(filesreport): cast fileId to integer
| * fix(filesreport): cast fileId to integerfix/filesreport-cast-fileId-to-intAnna Larch2024-09-151-1/+1
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(dav): set string type for sanitizeMtimefix/add-function-type-for-mimetype-sanitizerAnna Larch2024-09-151-1/+1
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: Adjust unit tests and protect against XSSFerdinand Thiessen2024-09-062-6/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): Update 403 error messageCamila2024-09-061-1/+2
| | | | | | | | * The user should get a more friendly warning when their desktop client version is not supported anymore by the server. See #nextcloud/desktop/issues/6273 * Update BlockLegacyClientPluginTest to reflect the new 403 error message. Signed-off-by: Camila Ayres <hello@camilasan.com>
* fix(dav): Always respond custom error page on exceptionsLouis Chemineau2024-09-051-4/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Allow read-only filename validation to allow reading filesFerdinand Thiessen2024-08-281-1/+1
| | | | | | Needed to read files with the "Windows compatibility" feature. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Renaming does not need update but delete permissionsFerdinand Thiessen2024-08-281-3/+3
| | | | | | | 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>
* fix(dav): Pre-check if node can be copied or moved in DAV files pluginFerdinand Thiessen2024-08-282-38/+72
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Delegate is-encrypted handling to the e2ee appLouis Chemineau2024-08-261-6/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2511-17/+17
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-122-18/+18
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): Ensure share properties are also set on public remote endpointFerdinand Thiessen2024-08-122-24/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: keep previous exception when wrapping dav exceptionsRobin Appelman2024-07-231-10/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>