mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
Test for PROPFIND on collection URL which has forgotten the trailing '/'
This commit is contained in:
parent
0fb06ec977
commit
6650e848e2
22
testing/tests/regression-suite/212-Moz-PROPFIND.result
Normal file
22
testing/tests/regression-suite/212-Moz-PROPFIND.result
Normal file
@ -0,0 +1,22 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Location: /user1/home/
|
||||
ETag: "69c451806ff9146e8c1f3113e1aa01a3"
|
||||
Content-Length: 343
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/caldav.php/user1/home/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
21
testing/tests/regression-suite/212-Moz-PROPFIND.test
Normal file
21
testing/tests/regression-suite/212-Moz-PROPFIND.test
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Do a PROPFIND request without the trailing '/', to confirm that
|
||||
# we continue to see this as a collection...
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user1/home
|
||||
HEAD
|
||||
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20061013 Thunderbird/1.5.0.7
|
||||
HEADER=Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
|
||||
HEADER=Content-Type: text/xml
|
||||
HEADER=Depth: 0
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:"><D:prop><D:resourcetype/></D:prop></D:propfind>
|
||||
ENDDATA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user