Gallery2:Modules:webdav:user - Gallery Codex
Personal tools

Gallery2:Modules:webdav:user

From Gallery Codex

Manually connect with WebDAV URL

The following are examples of WebDAV clients which work with Gallery, with a few corner cases, depending on the client and your server:

Windows Web Folders

  • In My Network Places, click Add a network place

__MAGIC_REMOVE__91807____MAGIC_REMOVE__91812__

  • When the wizard asks Where do you want to create this network place?, click Choose another network location

__MAGIC_REMOVE__91814____MAGIC_REMOVE__91816__

  • When the wizard asks What is the address of this network place?, enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.

__MAGIC_REMOVE__91818__

  • When the wizard asks, What do you want to name this place?, enter anything you like.

__MAGIC_REMOVE__91820____MAGIC_REMOVE__91822____MAGIC_REMOVE__91824__

Mac OS X WebDAVFS

  • In the Finder, from the Go menu, select Connect to Server...

__MAGIC_REMOVE__92220__

  • Enter the WebDAV URL of the album in Gallery. The WebDAV URL for each album in Gallery is displayed in the WebDAV URL block. The Gallery administrator must activate the WebDAV URL block for it to appear. The WebDAV URL is by default: http://example.com/gallery2/w/album/path.

__MAGIC_REMOVE__92224____MAGIC_REMOVE__92226____MAGIC_REMOVE__92231____MAGIC_REMOVE__92228__

Mac OS X fails to connect without a correct OPTIONS response. mod_php will pass OPTIONS requests to Gallery, so the response includes DAV headers, however Apache won't pass OPTIONS requests to scripts, so if you use php-cgi, you must use mod_rewrite and mod_headers to set these headers instead.

GNOME

  • In the panel, from the Places menu, select Connect to Server...

__MAGIC_REMOVE__92395__

  • In the Service type: menu, choose WebDAV (HTTP)
  • In the Server: field, enter the WebDAV URL of the album in Gallery without leading http://. The WebDAV URL is by default: example.com/gallery2/w/album/path

__MAGIC_REMOVE__92398__

fusedav

For davfs2 needed settings(set in davfs2.conf)


use_locks 0

use_expect100 0


worked with version 1.3.3


Automatically connect with item link

Internet Explorer

WebDAV, ActiveX, ASP.NET and related links:

About Web Folder Behaviors http://msdn2.microsoft.com/en-us/library/ms531432.aspx

ActiveX : The Official Microsoft ASP.NET Site http://silverlight.net/Default.aspx

Introducing Silverlight http://www.asp.net/silverlight/

Download Silverlight http://www.microsoft.com/silverlight/install.aspx

Info on Working with Distributed Authoring and Versioning (DAV) and Web Folders http://support.microsoft.com/kb/q221600/

Konqueror

The item link will connect to WebDAV with the webdav:// URL scheme.

Other

In other browsers, the item link will download a davmount resource: RFC 4709

For now, to open davmount resources on Windows, you must run the script at the end of RFC 4709. This only applies if you're not using Internet Explorer, e.g. Firefox. Media:Davmount.zip

Known Issues

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Troubleshooting

I'm trying to test the Gallery WebDAV connection on as many clients and servers as possible. If you encounter problems connecting to Gallery with WebDAV, please include in a bug report a transcript of the WebDAV HTTP conversation. You can use tcpflow or Wireshark to get a transcript: http://www.circlemud.org/~jelson/software/tcpflow/ http://packages.debian.org/tcpflow http://www.wireshark.org/ http://packages.debian.org/wireshark

tcpflow

tcpflow is a command line tool. You can run it on either your client or your server. It may require root permission to open your network interface. The following will display a transcript of the HTTP conversation with example.com:

sudo tcp -C port http and host example.com

Documentation

The Plone project has excellent WebDAV documentation: http://plone.org/documentation/how-to/webdav