mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
36 lines
796 B
Plaintext
36 lines
796 B
Plaintext
#
|
|
# MKTICKET request for a ticket on a collection
|
|
#
|
|
TYPE=MKTICKET
|
|
URL=http://regression.host/caldav.php/user2/home/
|
|
HEADER=User-Agent: Ticket Spec Tests
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
AUTH=user2:user2
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<D:ticketinfo xmlns:D="DAV:" >
|
|
<D:privilege>
|
|
<D:read/>
|
|
<D:write/>
|
|
</D:privilege>
|
|
<D:timeout>Second-3600</D:timeout>
|
|
<D:visits>1</D:visits>
|
|
</D:ticketinfo>
|
|
ENDDATA
|
|
|
|
QUERY
|
|
SELECT dav_owner_id,
|
|
(expires - current_timestamp)::interval(0) AS timeout,
|
|
privileges,
|
|
target_collection_id,
|
|
target_resource_id
|
|
FROM access_ticket
|
|
ENDQUERY
|
|
|
|
REPLACE=!ETag: "\S+"!ETag: "Some good etag"!
|
|
REPLACE=!<T:id>\S{8}</T:id>!<T:id>Good Ticket ID</T:id>!
|
|
REPLACE=!Ticket: \S{8}!Ticket:Good Ticket ID!
|