tdav::check_lock_for_unlock
tdav::check_lock_for_unlock
Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
regsub {^/} $uri {} uri
if {[file exists [tdav::get_lock_file $uri]]} {
set hdr [ns_set iget [ns_conn headers] {Lock-Token}]
if {[info exists hdr] && [string length $hdr]} {
regexp {<([^>]+)>} $hdr nil token
set ftk [lindex [tdav::read_lock $uri] 3]
if {[info exists token] && $token eq $ftk} {
} else {
return filter_return
}
} else {
return filter_return
}
}
return unlocked
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]