The example is actually missing the setName function. You will have to
implement that one yourself.
If you did, there's 2 bits of information I'd need to further figure
out what could have gone wrong:
* the actual code in your classes
* a saved session from charles (http://charlesproxy.com/)
Evert
Very odd indeed! I'm seeing the exact same thing. On thing I do notice
is that webdrive requests a bunch of non-standard properties using
PROPFIND, which leads me to believe there's probably some
incompatibilities.
As far as I can tell sabredav is behaving exactly as it should. A bug
within PROPFIND has been found though since 0.5, so perhaps giving the
trunk version a shot might help.
If that doesn't solve the issue, I can see if I can find some time
tonight to do some testing. I noticed they have a trail, so I can see
mod_dav and perhaps find out that does work and find the differences.
I'd also want to point out that Windows has built-in webdav support
and there's no need for external software to use it.
Sorry I can't be of more help right now!
Evert
Great! I'm very curious if there's any other oddities around Webdrive.
Do report back :)
Evert
If your back-end allows it, it's definitely recommended to override
both copy and move. They will generally be quite slow.
I personally have a mixed backend, which kinda looks like this :
Project1
Templates - database backed
- template1 - database backed
Assets - filesystem backed
For me it would be an option to check if a move or copy operation
happens solely within the 'assets' sub-tree, and let the filesystem
handle it, and otherwise fall back on the much slower version. Haven't
felt like doing that though :)
I've also been contemplating adding a new node-type next to Node/File/
Directory which would be 'Tree'. Whenever the ObjectTree comes across
one, it could delegate all operations within the tree to that object.
These are really just ideas though, I don't see this happening unless
there's significant demand for it.
Evert
Right now php://temp streams are used where possible.. This means the
data will be stored on disk as soon as it surpasses 2MB.
I don't really know if this is the case for the request-body. I can
see PHP will want to place that entire string into memory.
Worth testing..
Evert