Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117365907
D4881.1774816512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D4881.1774816512.diff
View Options
diff --git a/docker/proxy/rootfs/etc/nginx/nginx.conf b/docker/proxy/rootfs/etc/nginx/nginx.conf
--- a/docker/proxy/rootfs/etc/nginx/nginx.conf
+++ b/docker/proxy/rootfs/etc/nginx/nginx.conf
@@ -155,7 +155,8 @@
}
location ~ ^/\\.well-known/(caldav|carddav)(.*)$ {
- proxy_pass ROUNDCUBE_BACKEND;
+ proxy_pass DAV_BACKEND;
+ proxy_redirect http:// $scheme://;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
diff --git a/src/tests/Infrastructure/DavTest.php b/src/tests/Infrastructure/DavTest.php
--- a/src/tests/Infrastructure/DavTest.php
+++ b/src/tests/Infrastructure/DavTest.php
@@ -249,18 +249,7 @@
*/
public function testOptions(): void
{
- $body = <<<EOF
- <d:propfind xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/" xmlns:c="urn:ietf:params:xml:ns:caldav">
- <d:prop>
- <d:resourcetype />
- <d:displayname />
- <cs:getctag />
- <c:supported-calendar-component-set />
- </d:prop>
- </d:propfind>
- EOF;
-
- $response = $this->client->request('OPTIONS', "principals/{$this->user->email}", ['body' => $body]);
+ $response = $this->client->request('OPTIONS', "principals/{$this->user->email}");
$this->assertEquals(200, $response->getStatusCode());
$this->assertStringContainsString('PROPFIND', implode(', ', $response->getHeader('Allow')));
@@ -304,7 +293,7 @@
$this->assertEquals(207, $response->getStatusCode());
// Any URL should result in a redirect to the same path
- $url = $this->isCyrus ? "/user/{$email}" : "/calendars/{$email}";
+ $url = $this->isCyrus ? "user/{$email}" : "calendars/{$email}";
$response = $this->client->request('PROPFIND', "/.well-known/caldav/{$url}", $params);
$this->assertEquals(301, $response->getStatusCode());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 8:35 PM (6 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18775761
Default Alt Text
D4881.1774816512.diff (2 KB)
Attached To
Mode
D4881: Handle .well-known/(caldav|carddav) with Cyrus backend not iRony
Attached
Detach File
Event Timeline