WebDAV PROPFIND returns 302 code instead of 404 when ACS is installed using the example docker-compose.yml
Description
Problem Description:
After deploying ACS v6.2.2.2 using the image 'alfresco/alfresco-content-repository:6.2.2.2' and then mapping a network drive to /alfresco/webdav, it is not possible to add or move content on the mapped drive. When a file is dragged into the mapped drive -> Shared folder, Windows Explorer returns an Interrupted Action prompt:
"There is already a folder with the same name as the file name you specified. Specify a different name."
Steps to Reproduce:
Note: The docker-compose.yml (as attached) is downloaded from the ACS Trial with the ACS image reference changed. The only other change made was to adjust the IP addresses to match my environment.
1/. Create a Docker environment -> https://docs.alfresco.com/6.2/tasks/deploy-docker-compose.html
2/. Deploy the example docker-compose.yml as attached (adjust the ip addresses / hosts)
3/. Map a network drive to http://host:8080/alfresco/webdav
4/. Drag a new file into the [empty] Shared folder.
Observed Behaviour:
The file cannot be added to the Shared folder on the mapped drive. In the Fiddler trace, we see that the PROPFIND request returns a 302 code when a 404 code is expected:
PROPFIND /alfresco/webdav/Shared/alfresco-global%20(5).properties HTTP/1.1
HTTP/1.1 302
Server: nginx/1.16.0
Date: Thu, 07 Jan 2021 12:24:20 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 0
Connection: keep-alive
Location: http://192.168.30.188:8080/alfresco/webdav/
Expected Behaviour:
WebDAV access to Alfresco Content Services should be working OOTB using the example docker-compose.yml with the associated ACS image.
Environment
Ubuntu 18.04.5 LTS
Testcase ID
Activity
A customer reported that the error seems to originate from:
<!-- Enterprise index-jsp placeholder -->
<%
// route WebDAV requests
if (request.getMethod().equalsIgnoreCase("PROPFIND") || request.getMethod().equalsIgnoreCase("OPTIONS"))
{
response.sendRedirect(request.getContextPath() + "/webdav/");
}
%>
in tomcat/webapps/alfresco/error.jsp
Please note: When debugging this issue, we attempted to resolve the problem by removing nginx from the deployment (remove it from the docker-compose.yml). However, this did not change the behaviour.