#9 ✓resolved
Markus

fix for Web Folders

Reported by Markus | June 21st, 2007 @ 11:21 AM

I use the MS built on WebDAV client (called Web Folders). Win XP SP2. There were errors when copying files to or from a Rails DAV folder. The reason is that the client expects a LAST-MODIFIED header parameter both for get and head methods.

The following changes fix the issues: (sorry, I could not create patches since I have not checked out the sources)

module InstanceMethods

def webdav

#we can get the method (as webdav has a lot of new methods) from the request

#but HEAD is mapped as :get for request.method,

webdav_method = request.head? ? "head" : request.method.to_s

def webdav_get

[...]

raise WebDavErrors::NotFoundError if data_to_send.blank?

response.headers["Last-Modified"] = resource.getlastmodified

if data_to_send.kind_of? File

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages