This commit is contained in:
karel.picman@lbcfree.net 2021-02-09 09:58:22 +01:00
parent 9daadb7857
commit fbce894feb
4 changed files with 12 additions and 13 deletions

View File

@ -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")

View File

@ -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

View File

@ -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:

View File

@ -127,4 +127,5 @@ module RedmineDmsf
end end
end end
end end