cancel
Showing results for 
Search instead for 
Did you mean: 

WebDAV support for Alfresco WCM

pqr
Champ in-the-making
Champ in-the-making
Hi All,

We want to know if there is any support for accessing web content(under AVM store) using webDAV.
If, yes then how we can do it?

Here is what we tried:
We used the url: 'http://server:8080/alfresco/webdav', but we can't access AVM storage using this.

We found this when we searched more on this issue:
    http://forums.alfresco.com/en/viewtopic.php?f=29&t=5669&start=0&st=0&sk=t&sd=a&hilit=webdav

There's also a post which gives conflicting message:
   http://forums.alfresco.com/en/viewtopic.php?f=29&t=22141&p=72904&hilit=WebDAV#p72904

Please help.
This is urgent..
Thanks in advance..
2 REPLIES 2

janv
Employee
Employee
This is not supported out-of-the-box. See also enhancement request: https://issues.alfresco.com/jira/browse/ALFCOM-174

It should be noted that the WebDAV interface primarily uses the FileFolderService etc. Most of the service methods should also work with AVM-style nodeRefs (since AVM provides an in-built projection via AVMNodeService) so in theory it should be possible to extend the WebDAV interface to expose WCM/AVM stores.

For example, one option might be to extend the WebDAVHelper to map the selected "/Web Projects" path to the list of available web projects for the current user (eg. via WebProjectService) and then map the selected "/Web Projects/mywebproject" path to the current user's sandbox (eg. via SandboxService) to provide an AVM-style rootNodeRef (eg. "avm://mywebproject–admin/-1;"). The remaining WebDAV methods should then be able to use the AVM-style nodeRefs (eg. "avm://mywebproject–admin/-1;www;avm_webapps;ROOT;mydir"). If you go down this custom route then you may also require a minor bug fix to AVMNodeService itself, eg.


svn diff projects/repository/source/java/org/alfresco/repo/avm/AVMNodeService.java
Index: projects/repository/source/java/org/alfresco/repo/avm/AVMNodeService.java
===================================================================
— projects/repository/source/java/org/alfresco/repo/avm/AVMNodeService.java   (revision 17819)
+++ projects/repository/source/java/org/alfresco/repo/avm/AVMNodeService.java   (working copy)
@@ -37,6 +37,7 @@

import org.alfresco.model.ContentModel;
import org.alfresco.model.WCMModel;
+import org.alfresco.repo.avm.util.AVMUtil;
import org.alfresco.repo.domain.PropertyValue;
import org.alfresco.repo.node.AbstractNodeServiceImpl;
import org.alfresco.service.cmr.avm.AVMException;
@@ -1736,7 +1737,7 @@
         try
         {
             AVMNodeDescriptor child = fAVMService.lookup(avmVersionPath.getFirst(),
-                                                         avmVersionPath.getSecond());
+                                                         AVMUtil.extendAVMPath(avmVersionPath.getSecond(), childName));
             if (child == null)
             {
                 return null;

Regards,
Jan

pqr
Champ in-the-making
Champ in-the-making
Thanks Jan

So we can confirm that OOTB webDAV support for  WCM or AVM store is not availble