mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +00:00
2044 wants VCARDs with either TEL or EMAIL of TYPE=WORK. !20 correctly splits the comma separated list of parameters so another two vCards now correctly match (see also https://gitlab.com/davical-project/awl/-/merge_requests/20#note_503183133)
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
#
|
|
# Test matching one of a multi-value parameter
|
|
#
|
|
# (Jonny1 has X-CUSTOMPARAM=HOME,WORK but "HOME" is not just a part but
|
|
# an entire value ("equals") of a multi-value parameter
|
|
#
|
|
TYPE=REPORT
|
|
URL=http://regression.host/caldav.php/user5/addresses/
|
|
|
|
HEADER=Accept: text/xml,application/xml
|
|
HEADER=Content-Type: text/xml
|
|
HEADER=Depth: 1
|
|
|
|
AUTH=user5:user5
|
|
|
|
# HEAD
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0"?>
|
|
<CARDDAV:addressbook-query xmlns:DAV="DAV:" xmlns:CARDDAV="urn:ietf:params:xml:ns:carddav" xmlns:CS="http://calendarserver.org/ns/">
|
|
<DAV:prop>
|
|
<DAV:getetag/>
|
|
<CARDDAV:address-data/>
|
|
</DAV:prop>
|
|
<CARDDAV:filter test="anyof">
|
|
<CARDDAV:prop-filter name="X-CUSTOMPROP" test="anyof">
|
|
<CARDDAV:param-filter name="X-CUSTOMPARAM">
|
|
<CARDDAV:text-match negate-condition="no" collation="i;unicode-casemap" match-type="equals">HOME</CARDDAV:text-match>
|
|
</CARDDAV:param-filter>
|
|
</CARDDAV:prop-filter>
|
|
</CARDDAV:filter>
|
|
</CARDDAV:addressbook-query>
|
|
ENDDATA
|
|
|
|
REPLACE=_<getetag>"[0-9a-f]+"</getetag>_<getetag>some valid etag</getetag>_
|
|
REPLACE=/^REV:.*$/REV:date/
|