Table of Contents [-]
The Document Library and Journal portlets now provide support for the WebDAV protocol so users can upload and organize resources from both a web interface and the file explorer of their desktop operating system. Starting with Liferay Portal 5.0, Image Gallery will also be accessable via WebDAV.
What is WebDAV #
WebDAV provides functionality to create, change and move documents on a remote server (typically a web server or "web share"). WebDAV is supported by all major Operating Systems and Desktop Environments including Windows, MacOS X and Linux (KDE and GNOME).
For more information visit:
Determining the WebDAV URL #
Document Library - In the Document Library portlet, navigate to the specific folder and edit it (click the edit button to the right). In there you will see the direct WebDAV URL for that location.Image Gallery (v5.0+) - Pretty much the same as the Document Library. Journal - In the Journal portlet, navigate to the specific Journal Template and edit it. You should see the direct WebDAV URL for that template.
Login Credentials #
You can login using the login credentials you use to access the portal. In fact, you can use the email address, user ID or screen name -- all three will work.
In earlier versions of Liferay, you could only use your user ID. You can find your User ID by clicking My Account. It should be one of the first entries in the Profile tab that comes up. So if my User ID is 12345, then my login information would be:
Login = 12345 Password = ****
Note: Any time you change your password, emailaddress or screenname, you may need to re-login to the server via the portal. This includes when you first upgrade or use a clean installation of Liferay. Otherwise, when you login, you may see in your stacktrace something like the following: "User must first login through the portal 1234".
Configuring WebDAV support #
By default Liferay Portal allows WebDAV connections from any server using HTTP or HTTPS. It is possible to have a more secure configuration through the following properties of portal(-ext).properties:
Note: this configuration is not currently available in 4.3.0
Accessing a WebDAV URL #
Each WebDAV accessible resource of Liferay has an associated URL. Copy that URL and use it to configure the file (or WebDAV) browser that you prefer. You will be asked to authenticate with your userId and password.
Following are specific instructions of how to configure access to the folder using WebDAV once you have the URL:
Connecting to WebDav from Windows GUI may not always work as expected. It is recommended to use "net use" command from command line.
Mapping Network Drive (Vista or 7 only) #
- Right click on the Network icon and select Map Network Drive.
- Select a drive and enter the WebDAV URL and click Finish. Enter credentials when prompted.
Using "Add Network Places" Wizard (XP, Vista or 7) #
- On Vista or Windows 7, right click on the Computer icon and select Add Network Location. On XP and Server 2003, open My Network Places in Windows Explorer and double click Add a Network Place.
- Select "Choose another network connection" and click Next.
- Enter the WebDAV URL and click Next. Enter credentials when prompted.
Windows 98 #
- Using Windows Explorer go to the menu option "Web Folder...".
- Introduce the WebDAV URL and click enter.
Konqueror (KDE) #
- Change the protocol of the URL so that instead of http://... it says webdav://...
- Write the URL in the location bar and click enter.
Nautilus (GNOME) #
- Change the protocol of the URL so that instead of http://... it says dav://... (davs://... when your site is using SSL).
- Write the URL in the location bar and click enter.
Mac OS X #
- In the Finder select the menu Go->Connect to Server.
- Type the address of the WebDAV server in the Server Address field and click "Connect". Enter credentials when prompted.
Known Issues #
- When viewing folders in the Document Library, files exist beginning with "._" (e.g., "._test.txt"). This is due to the implementation of OS X's WebDAVFS client. OS X creates a resource fork for every file it creates or modifies, storing it in a file that has a name prepended with "._". Though this is invisible on OS X, most other clients (including the Document Library portlet) display this file as present. Deleting this file will not cause any harm but will be regenerated when OS X finds the need to do so.
- If you are using TortoiseSVN or TortoiseGIT, it will constantly query the WebDAV for .svn or .git folders. To skip the checks against these folders, add to your portal-ext.properties: webdav.ignore=.svn,.git
- Setting GMT timezone on your application server may be critical! When user.timezone property is not set, application servers detect timezone from locale. During the communication with the WebDav client, all times will be sent in detected timezone (like CET). Some WebDav clients (like Windows7) don't handle timezones correctly, and expect the GMT.
|Problem||Version of Windows||MS KB||Patch|
|MS Hotpatch required for WebDAV to work on various versions of Windows.||XP, Vista, Server 2003||KB892211, http://support.microsoft.com/kb/907306||KB907306]]||Webfldrs-KB907306-ENU.exe|
|Error message of invalid folder when URL has a %20 in it. Replace all %20 strings with a single space " ".||various||KB888039|
|Getting "The folder name is not valid." error on Liferay 6.04 or below. This is due to the new requirement of Vista/7 for WebDAV to use Digest authentication. Workaround in KB notes.||Vista, 7||KB928692||LPS-10606|
|Move or copy of folders in Explorer returns an "Error 0x80070021: The process cannot access the file because another process has locked a portion of the file."||Vista, 7||LPS-12080|
|You experience a long delay when you try to access files on Liferay's WebDAV.||Vista, Server 2003||KB945435||Windows6.0-KB945435-x86.msu, http://www.microsoft.com/downloads/en/details.aspx?FamilyId=16A8648C-8213-453F-B0E6-5A539FD28C7A&displaylang=en||Windows6.0-KB945435-x64.msu]]|
|You receive a folder copy error message when you try to download a file larger than 50MB. You may also get an error 0x800700DF.||XP, Vista||KB900900|
|On "Open in Office" link in IE, user is presented with the error message "Cannot open the requested document due to the following reason: Automation server can't create object."||64-bit Windows||Technet Library||LPS-28718|