dreamweaver WebDAV confusion
I run Zope with WebDAV source port. Dreamweaver MX 2004 authenticates successfully and I can browse directories. To avoid problems, I use extensions. I created an "a.zpt" Page Template in the ZMI. When I double-click it in Dreamweaver, dw checks it out (green check mark displayed next to the a.zpt file) but dw will display nothing. dw behaves as if no file was opened. No error message. Below is the contents of TCP communication on the webdav port when I double-click "a.zpt". As you can see, the a.zpt file contents is not downloaded. What gives? PROPFIND /www.ibc.cz/test/ HTTP/1.1. Host: 172.16.38.1:3980. User-Agent: Dreamweaver-WebDAV-SCM1.02. Authorization: Basic bWlsOnplbk1hbmFnZXI=. Translate: f. Depth: 1. Connection: Close. Content-Type: text/xml; charset="utf-8". Content-Length: 130. . <?xml version="1.0" encoding="utf-8" ?>. <D:propfind xmlns:D="DAV:">. .<D:prop>. ..<D:resourcetype/>. </D:prop>. </D:propfind>. . HTTP/1.1 207 Multi-Status. Server: Zope/(unreleased version, python 2.3.3, linux2) ZServer/1.1. Date: Thu, 01 Apr 2004 17:51:10 GMT. Content-Length: 1753. Connection: close. Ms-Author-Via: DAV. Connection: close. Etag: . Date: Thu, 01 Apr 2004 17:51:10 GMT. Content-Type: text/xml; charset="utf-8". . <?xml version="1.0" encoding="utf-8"?> <d:multistatus xmlns:d="DAV:"> <d:response> <d:href>/www.ibc.cz/test/</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"><n:collection/></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/a</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/insert</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/insert_cz</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/insert_sample</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/select</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/untitled.htm</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/www.ibc.cz/test/a.zpt</d:href> <d:propstat> <d:prop> <n:resourcetype xmlns:n="DAV:"></n:resourcetype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> </d:multistatus> -- Milos Prudek _________________ Most websites are confused chintzy gaudy conflicting tacky unpleasant... unusable. Learn how usable YOUR website is! http://www.spoxdesign.com
Milos Prudek wrote:
Below is the contents of TCP communication on the webdav port when I double-click "a.zpt". As you can see, the a.zpt file contents is not downloaded.
Well, you trace seems incomplete, I see DW asking for a directory listing, and Zope replying, but I don't see DW asking for the file. If DW doesn't ask for it, Zope won't serve it ;-) Full marks for having the sense to do the packet sniffing before posting ot the list, though! cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Well, you trace seems incomplete, I see DW asking for a directory listing, and Zope replying, but I don't see DW asking for the file. If DW doesn't ask for it, Zope won't serve it ;-)
I gathered as much, too. Unfortunately, it is a complete trace, even though it does not look like one. Instead of double-clicking in DW, I tried right-click and choose an option. - Check Out: works perfectly - Get: Fails, and pops up this window: "The desired action could not be completed because an unexpected HTTP error occured (HTTP error 200)." You and I know that status 200 is not an error. Even more confusing is the fact that trace for DW Check Out and trace for DW Get is exactly the same, line for line! Exactly the same trace that's in my original post. I just do not get it. Does Dreamweaver MX 2004 work for ZPT for anyone on the list? I use Zope 2.7.0.
Full marks for having the sense to do the packet sniffing before posting ot the list, though!
I've got ethereal and I'm not afraid to use it :-))) -- Milos Prudek
I tried to use FTP to connect from DW to Zope (on Linux). DW cannot even list a folder contents. And the ethereal capture is quite interesting. No WebDAv and in fact no TCP communication takes place. Windows makes an A DNS query via UDP, asking for <directory_name>.localhost IP address! For instance when I want to list Control_Panel, Windows asks for IP address of "control_panel.localhost" and of course this fails. -- Milos Prudek
Milos Prudek wrote:
For instance when I want to list Control_Panel, Windows asks for IP address of "control_panel.localhost" and of course this fails.
Sounds like you need to go and talk to Macromedia :-( Chris PS: I'd recommend just using Webdrive instead, it's cheap, and it means you can use a good editor without having to put up with it's buggy WebDAV/FTP support. It also means you can use a good editor that has no such support ;-) -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
PS: I'd recommend just using Webdrive instead, it's cheap, and it means you can use a good editor without having to put up with it's buggy
Oh yeah, WebDrive does work but will only run under a privileged user in Windows XP. And that sucks. I still prefer direct Dreamweaver connection. -- Milos Prudek _________________ Most websites are confused chintzy gaudy conflicting tacky unpleasant... unusable. Learn how usable YOUR website is! http://www.spoxdesign.com
participants (2)
-
Chris Withers -
Milos Prudek