#1133 Cadaver
This commit is contained in:
parent
9daadb7857
commit
fbce894feb
@ -240,7 +240,6 @@ module DAV4Rack
|
|||||||
return MultiStatus
|
return MultiStatus
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
properties = if propfind.nil? or
|
properties = if propfind.nil? or
|
||||||
propfind.empty? or
|
propfind.empty? or
|
||||||
propfind.xpath("//#{ns}allprop").first
|
propfind.xpath("//#{ns}allprop").first
|
||||||
@ -275,6 +274,7 @@ module DAV4Rack
|
|||||||
r.multistatus do |xml|
|
r.multistatus do |xml|
|
||||||
xml << r.raw(prop_xml)
|
xml << r.raw(prop_xml)
|
||||||
end
|
end
|
||||||
|
|
||||||
MultiStatus
|
MultiStatus
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -320,8 +320,6 @@ module DAV4Rack
|
|||||||
asked[:timeout] = timeout.split(',').map{|x|x.strip}
|
asked[:timeout] = timeout.split(',').map{|x|x.strip}
|
||||||
end
|
end
|
||||||
|
|
||||||
Rails.logger.info ">>> #{request.document}"
|
|
||||||
|
|
||||||
ns = request.ns
|
ns = request.ns
|
||||||
if doc = request.document and lockinfo = doc.xpath("//#{ns}lockinfo")
|
if doc = request.document and lockinfo = doc.xpath("//#{ns}lockinfo")
|
||||||
|
|
||||||
|
|||||||
@ -216,6 +216,16 @@ module RedmineDmsf
|
|||||||
prj
|
prj
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Adds the given xml namespace to namespaces and returns the prefix
|
||||||
|
def add_namespace(ns, prefix = "unknown#{rand 65536}")
|
||||||
|
@__proxy.add_namespace ns, prefix
|
||||||
|
end
|
||||||
|
|
||||||
|
# returns the prefix for the given namespace, adding it if necessary
|
||||||
|
def prefix_for(ns_href)
|
||||||
|
@__proxy.prefix_for ns_href
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def get_resource_info
|
def get_resource_info
|
||||||
|
|||||||
@ -672,16 +672,6 @@ module RedmineDmsf
|
|||||||
x
|
x
|
||||||
end
|
end
|
||||||
|
|
||||||
# Adds the given xml namespace to namespaces and returns the prefix
|
|
||||||
def add_namespace(ns, prefix = "unknown#{rand 65536}")
|
|
||||||
@__proxy.add_namespace ns, prefix
|
|
||||||
end
|
|
||||||
|
|
||||||
# returns the prefix for the given namespace, adding it if necessary
|
|
||||||
def prefix_for(ns_href)
|
|
||||||
@__proxy.prefix_for ns_href
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Prepare file for download using Rack functionality:
|
# Prepare file for download using Rack functionality:
|
||||||
|
|||||||
@ -127,4 +127,5 @@ module RedmineDmsf
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user