Wiki

Main | Proposals

WebDAV

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 = ****

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:
 webdav.servlet.hosts.allowed=
 webdav.servlet.https.required=false

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:

Windows #

Linux #

  • Konqueror (KDE)
    1. Change the protocol of the URL so that instead of http://... it says webdav:...
    2. Write the URL in the location bar and click enter.
  • Nautilus (GNOME)
    1. Change the protocol of the URL so that instead of http://... it says dav:... (davs:... when your site is using SSL).
    2. Write the URL in the location bar and click enter.

Mac OS X #

  1. In the Finder select the menu Go->Connect to Server.
  2. Type the address of the WebDAV server in the Server Address field.
  3. Click "Connect."

Known Issues #

General #

  • 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.

Windows #

  • When adding a Network Place, you get the error message "The folder you entered does not appear to be valid. Please choose another." This may occur if your URL has a %20 in it. If so, replace all %20 strings with a single space " " (c.f., KB888039).
  • Vista/Windows 7 users may have problems logging into Liferay's WebDAV (or any other WebDAV for that matter) because Liferay and many other servers only support Basic Authentication. Though this is changed for 6.0EE/6.1CE (LPS-10606), a workaround is to set your registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel to 2.
  • Vista/Server 2003:
    • Several users have reported issues with Vista/Server 2003. A patch is available that has been helpful for some, but not all users.
    • See KB907306 and KB892211 and apply the patch: Webfldrs-KB907306-ENU.exe.

Mac OS X #

  • Files do not seem to be editable from within MS Office. The reason for this is the fact that, when editing a file, Office generates a series of temporary files, moves and renames them, and tries to create random directories. Due to the extensions of files generated and location that they are made, this causes problems with the business rules around document library. A few outstanding issues exist, but even with these things fixed (http://issues.liferay.com/browse/LPS-3604 and http://issues.liferay.com/browse/LPS-3605), it seems that many users of OS X/MS Office on WebDAV servers run into speed issues.
17611 Views , 0 Attachments 0 Attachments

Average (0 Votes)
Comments Flat View

I cannot access document_library via WebDAV with IIS 6.0 using as frontend server.
Any hints to solve?

locally I can access via port 8080.

help welcome! regards Thomas

Posted on 7/18/08 12:07 PM.

Top Top
Just a note on Nautilus (GNOME) - when you change the http:// to dav:// you must also add in the user name as an email address. This will look like
dav://test%40liferay.com@<server>/<folder>

You will then get prompted for the password in a pop up dialog.

I also found that where folder names had spaces, then there Nautilus had problems browsing through them (it recommended using another viewer)

Sean

Posted on 9/9/08 12:50 PM.

Top Top
In regards to the spaces, this has been fixed per http://issues.liferay.com/browse/LPS-1346. Thanks!

Posted on 12/30/08 3:05 PM in reply to Sean Condon.

Top Top
Is it possible to see who (what User) has uploaded the document?

Posted on 2/25/09 6:55 AM.

Top Top
Hi,

It does not seem to work for us. We are getting the Windows error mentioned in this wiki (we have no %20 in URL). On the server, there is following exception:

14:09:13,846 ERROR [SharepointFilter:239] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.util.InstancePool._get(InstancePool.java:70)
at com.liferay.portal.kernel.util.InstancePool._get(InstancePool.java:66)
at com.liferay.portal.kernel.util.InstancePool.get(InstancePool.java:44)
at com.liferay.portal.sharepoint.SharepointUtil.getStorage(SharepointUtil.java:112)
at com.liferay.portal.sharepoint.SharepointServlet.doPost(SharepointServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

Regards,
Aurbind

Posted on 4/17/09 1:44 AM in reply to Alexander Chow.

Top Top
I would like to know if its possible to drag and drop files from your desktop to document library ?

Posted on 6/9/09 11:34 AM in reply to Aurbind Sharma.

Top Top
Windows VISTA native WebDav client is not working with LifeRay. I used the webdrive client from http://www.webdrive.com/products/webdrive/index.htm it is working fine, but I still have some issues on saving file, and version control.

Posted on 7/25/09 4:07 AM.

Top Top
Have you tried applying the patch from http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&displaylang=en (per KB907306)?

Posted on 8/20/09 9:35 AM in reply to Reza Toghraee.

Top Top
actually I did it today, but still the stupid MS Vista does not understand and says the folder you entered does not appear to be valid.

my big problem is with Microsoft Office 2007. it is saving in .tmp files and makes liferay crazy. I put dl.file.extensions=* in portal.properties, its now better but I think people must work offline, and once they finished the edit, they must synchronize.

Posted on 9/7/09 1:52 PM in reply to Alexander Chow.

Top Top
Does not work for non-admin user

The WebDAV works just fine for an admin role user but gives error for a community user,
01:12:29,287 ERROR [WebDAVServlet:111] com.liferay.portal.webdav.WebDAVException: com.liferay.portal.webdav.WebDAVException: com.liferay.portal.security.auth.PrincipalException
com.liferay.portal.webdav.WebDAVException: com.liferay.portal.webdav.WebDAVException: com.liferay.portal.security.auth.PrincipalException
at com.liferay.portal.webdav.methods.PropfindMethodImpl.process(PropfindMethodImpl.java:66)
at com.liferay.portal.webdav.WebDAVServlet.service(WebDAVServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.service(PortalClassLoaderServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Not sure what is going wrong.

Posted on 2/13/10 5:18 PM.

Top Top
I have a document libreray that is accessed by WebDav in Konqueror, everything OK, but when the users must close or save a file OpenOffice.org asks for user and password many many times (up to 20 times), and another day with same file or another one just works fine typing the user and password only once.
Anyone have an idea why is this happening ?
Thanks.

Posted on 2/17/10 6:17 AM.

Top Top
Testing it on LR 6.0.2 It seems to work great to some extent:

DL: works for opening and adding docs... Replacing one kills the doc in LR (document not found when clicked)
Journal: Can see templates and strucutres, but not articles
IG: I can browse and see images, but I can't add images.

This was tested on a mac... Using omni admin account.

Thanks!

Posted on 6/16/10 3:15 PM in reply to Valentin Reynoso.

Top Top
Hi Alex,

Yes, the things is on OS X (which I primarily use), it requires WebDAV Class Level 2 (locking) support to edit files. But that also means the OS can write all sorts of files that make no sense to the average user... including temp files.

As of right now, Journal and IG don't support files that are outside of their formats and, hence, does not allow locking (making it read-only on OS X). Journal articles are not supported for the simple reason that we don't know how to present this information to the end user (is it an XML file, a collection of files, images, or something else?).

As far as your DL issue.. are you saying when you edit a file, it kills the original document and creates a new one with the old name? This happens on Office -- it is mainly an implementation problem of Office and has nothing to do with Liferay.

Posted on 7/14/10 6:48 AM in reply to Alex Wallace.

Top Top