Issue #21 unable to access webdav when a subfolder

Resolution comes with using path_info in request - to be tested
This commit is contained in:
Daniel Munn 2012-07-05 13:00:58 +01:00
parent 1f9e136934
commit 5dee0c03e2
3 changed files with 7 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class DmsfUploadController < ApplicationController
end
end
unless files.empty?
files.each {|file| log_activity(file, "uploaded")}
files.each {|file| log_activity(file, "uploaded") unless file.nil?}
begin
DmsfMailer.files_updated(User.current, files).deliver
rescue ActionView::MissingTemplate => e

View File

@ -337,6 +337,7 @@ module DAV4Rack
# Returns Resource path with root URI removed
def implied_path
return clean_path(@request.path_info.dup) unless @request.path_info.empty?
clean_path(@request.path.dup)
end

View File

@ -80,6 +80,11 @@ module RedmineDmsf
OK
end
# Bugfix: Ensure that this level never indicates a parent
def parent
nil
end
end
end
end