How to Upgrade to WebDAV Server Engine V2
Upgrade to .NET 2.0
The new version requires .NET Framework 2.0 and will not run on .NET 1.1.
Implement IHierarchyIten.Path Property
The new version of WebDAV Server Engine provides new property called Path in IHierarchyItem interface. The Path property represents a unique item path in the repository. The URL returned by Path property is relative to storage root. If your server root is located at ‘http://example.webdavsystem.com:8080/myserver/’ and the item URL is ‘http://example.webdavsystem.com:8080/myserver/myfolder/myitem.doc’ Path property implementation must return ‘myfolder/myitem.doc’. To calculate the entire item URL the engine will call Request.ApplicationPath property and attach it to url returned by Path property.
Implement Request.UserAgent Property
Request class now requires new property UserAgent to be implemented. This property was added to Request class because of the bug in HttpListener implementation. HttpListener removes User-Agent header (and only this header) from the list returned by HttpListenerRequest.Headers. However this property is still available via HttpListenerRequest.UserAgent property.
Implement IHierarchyItem.GetPropertyNames
The GetPropertyNames provides to WebDAV client the ability to request all property names without values. In your GetPropertyNames implementation you will create an array of properties and return it via props parameter. Note that most WebDAV clients including Microsoft Web Folders never use this functionality, so your GetPropertyNames implementation can just return NotAllowedResponse.
See Also What’s New in IT Hit WebDAV Server Engine V2
|