Browse Source
fix(dav): Public WebDAV endpoint should allow `GET` requests
fix(dav): Public WebDAV endpoint should allow `GET` requests
`GET` should be allowed even without Ajax header to allow downloading files, or show files in the viewer. All other requests could be guarded, but this should not. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>pull/48628/head
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
9 changed files with 127 additions and 12 deletions
-
16apps/dav/appinfo/v2/publicremote.php
-
2build/integration/config/behat.yml
-
36build/integration/dav_features/dav-v2-public.feature
-
9build/integration/features/bootstrap/CommandLineContext.php
-
2build/integration/features/bootstrap/CommentsContext.php
-
23build/integration/features/bootstrap/DavFeatureContext.php
-
14build/integration/features/bootstrap/Download.php
-
1build/integration/features/bootstrap/FeatureContext.php
-
36build/integration/features/bootstrap/WebDav.php
@ -0,0 +1,23 @@ |
|||
<?php |
|||
/** |
|||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
use Behat\Behat\Context\Context; |
|||
use Behat\Behat\Context\SnippetAcceptingContext; |
|||
|
|||
require __DIR__ . '/../../vendor/autoload.php'; |
|||
|
|||
class DavFeatureContext implements Context, SnippetAcceptingContext { |
|||
use AppConfiguration; |
|||
use ContactsMenu; |
|||
use ExternalStorage; |
|||
use Search; |
|||
use WebDav; |
|||
use Trashbin; |
|||
|
|||
protected function resetAppConfigs() { |
|||
$this->deleteServerConfig('files_sharing', 'outgoing_server2server_share_enabled'); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue