MNT-17978: Non-domain webdav users unable to authenticate via kerberos: both non-domain and domain webdav clients should be able to access webdav when kerberos is configured without breaking share logging in as well as share kerberos sso (related to MNT-16931, MNT-17850, MNT-17858)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jelena Cule
2017-06-20 00:36:02 +00:00
parent 6507678eeb
commit df62dc33cf

View File

@@ -365,7 +365,14 @@ public abstract class BaseKerberosAuthenticationFilter extends BaseSSOAuthentica
req.getRemoteAddr() + ":" + req.getRemotePort() + ")");
// Send back a request for SPNEGO authentication
logonStartAgain(context, req, resp, true);
if (req.getRequestURL().toString().contains("webdav"))
{
logonStartAgain(context, req, resp, false);
}
else
{
logonStartAgain(context, req, resp, true);
}
return false;
}
else