Strange problem with WebDAV and Zope
Hello, I am observing a strange problem when trying to use MKCOL WebDAV method with a specific url. I can reproduce it with two WebDAV clients: Jakarta Slides[1] and the command-line client nd[2]. The problem: Invoking MKCOL method against Zope's WebDAV server with an url ending with "title" fails. Usind nd I can reproduce it with the following command: nd -k http://localhost:8280/title (From nd man page -k option sends MKCOL request) This command fails with Error: MKCOL failed, `Not Found' If I change the command to end with anything different than "title" it works: nd -k http://localhost:8280/title1 and I can see in ZMI that title1 folder is created. Some background: I initially noticed this behaviour Plone (version 2.0.5) under Windows XP while I was executing a large number of MKCOLs. I tried to reduce the problem, so I installed on my personal FreeBSD laptop Zope 2.7.8 for FreeBSD ports. I created a zope instance and I configured in its zope.conf that http server runs on 8080 port and webdav server runs on 8280 port. I checked this problem agains Apache Httpd and mod_dav and creating such a collection works. This makes me think that Zope uses title suffix for internal aims. My question is how I can workaround this problem? Regards Rambius [1]http://jakarta.apache.org/slide/ [2]http://www.gohome.org/nd/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Ivan "Rambius" Ivanov wrote:
Hello,
I am observing a strange problem when trying to use MKCOL WebDAV method with a specific url. I can reproduce it with two WebDAV clients: Jakarta Slides[1] and the command-line client nd[2].
The problem: Invoking MKCOL method against Zope's WebDAV server with an url ending with "title" fails. Usind nd I can reproduce it with the following command:
nd -k http://localhost:8280/title (From nd man page -k option sends MKCOL request)
This command fails with Error: MKCOL failed, `Not Found'
If I change the command to end with anything different than "title" it works: nd -k http://localhost:8280/title1 and I can see in ZMI that title1 folder is created.
Some background: I initially noticed this behaviour Plone (version 2.0.5) under Windows XP while I was executing a large number of MKCOLs. I tried to reduce the problem, so I installed on my personal FreeBSD laptop Zope 2.7.8 for FreeBSD ports. I created a zope instance and I configured in its zope.conf that http server runs on 8080 port and webdav server runs on 8280 port.
I checked this problem agains Apache Httpd and mod_dav and creating such a collection works. This makes me think that Zope uses title suffix for internal aims.
My question is how I can workaround this problem?
Regards Rambius
[1
Maybe because 'title' is a common object property and it is getting acquired before the intended one? David
Ivan "Rambius" Ivanov wrote:
nd -k http://localhost:8280/title (From nd man page -k option sends MKCOL request)
This command fails with Error: MKCOL failed, `Not Found'
This is probably because 'title' exists as an attribute on most Zope objects, so it's already in use, so the MKCOL fails. Admittedly, it could provide a more accurate error message... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
David -
Ivan "Rambius" Ivanov