How to enable WebDAV in Adobe AEM?

人盡茶涼 提交于 2019-12-05 13:55:30

I'm not sure about the /crx/repository path but WebDAV is also enabled on /, as demonstrated below on a vanilla AEM 5.6.1 instance. curl -T does a WebDAV PUT.

$ date > /tmp/somefile.txt
$ curl -u admin:admin -X MKCOL http://localhost:4502/tmp/test
$ curl -u admin:admin -T/tmp/somefile.txt http://localhost:4502/tmp/test/somefile.txt
$  curl -u admin:admin http://localhost:4502/tmp/test/somefile.txt
Fri Jan 17 10:41:36 CET 2014 

RMI would indeed be a separate question, and if you're hesitating between WebDAV and RMI you might want to expose your use case, as the Sling HTTP APIs might be good enough.

To get this to work from Windows Explorer you need to add a CRX user with the same user name and password as a Windows user that has permission to access the repository files. The Windows WebClient will ask you to logon at a Windows level. This userid must also exist in both Windows and CRX. Once I did this I was able to set up a shared drive to point to the CRX repository.

I also made a registry change to set the WebClient to use Basic authentication for SSL and non-SSL shares. Using the registry editor, for the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
set
BasicAuthLevel to 2.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!