AnsweredAssumed Answered

1.0.0.1: Unable to login (501 Method PROPFIND is not defined)

Question asked by oleh on Jun 26, 2013
I'm testing out the Desktop Sync app but I'm kind of stuck. I'm not able to login with my credentials :(

I've verified that my Alfresco host is running on http://alfresco.domain.local:8080/alfresco

I have a standard 4.2.c community installer running, everything is just fine and sweet.

I launch up the app, enter my username and password, and http://alfresco.domain.local:8080/alfresco as my url but the app says "There was an error connecting to Alfresco. Please check your login settings and try again".

Digging into the log I found this:

15:20:43.563 DEBUG RemoteFileStore - Cloud: Test Connection
15:20:43.849 ERROR RemoteFileStore - Cannot connect to webdav [http://alfresco.domain.local:8080/alfresco/]
15:20:43.849 ERROR RemoteFileStore - com.googlecode.sardine.impl.SardineException: Unexpected response (501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API)


Inspecting a tcpdump shows me that the app first does an OPTIONS /, followed by PROPFIND /alfresco
The PROPFIND /alfresco gives a redirect to /alfresco/ which responds with a 501.

I actually have the same issue with webdav + windows xp client, when trying to map it it tries to do a PROPFIND on /alfresco/ which (as we see above) returns 501.

It seems something is wrong here, and that the /alfresco/ servlet should somehow be able to redirect or support a propfind?

Digging into index.jsp in Alfresco it has these lines at the bottom:

// route WebDAV requests
else if (request.getMethod().equalsIgnoreCase("PROPFIND") ||
request.getMethod().equalsIgnoreCase("OPTIONS"))
{
response.sendRedirect(request.getContextPath() + "/webdav/");
}


It seems that if we have either a propfind or options request it should redirect to /webdav/ but by the looks of it, this does not work .. any suggestions?

Outcomes