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
-

Stuart Eccles June 21st, 2007 @ 11:21 AM
- State changed from new to open
- Assigned user set to Stuart Eccles
-

Stuart Eccles June 21st, 2007 @ 11:21 AM
- State changed from open to resolved
Fixed in revision 21
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป