mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged DEV_TEMPORARY to HEAD
18288: ENH-678: alfresco webdav does not pass litmus webdav test suite git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.service.cmr.model.FileInfo;
|
||||
import org.alfresco.service.cmr.model.FileNotFoundException;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.io.XMLWriter;
|
||||
import org.w3c.dom.Document;
|
||||
@@ -69,6 +68,8 @@ public class PropPatchMethod extends PropFindMethod
|
||||
throw new WebDAVServerException(HttpServletResponse.SC_NOT_FOUND);
|
||||
}
|
||||
|
||||
checkNode(pathNodeInfo);
|
||||
|
||||
// Set the response content type
|
||||
m_response.setContentType(WebDAV.XML_CONTENT_TYPE);
|
||||
|
||||
@@ -353,14 +354,29 @@ public class PropPatchMethod extends PropFindMethod
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Stores information about PROPPATCH action(set or remove) an according property.
|
||||
*
|
||||
* @author Ivan Rybnikov
|
||||
*/
|
||||
private class PropertyAction
|
||||
{
|
||||
protected static final int SET = 0;
|
||||
protected static final int REMOVE = 1;
|
||||
|
||||
// Property on which action should be performed
|
||||
private WebDAVProperty property;
|
||||
|
||||
// Action
|
||||
private int action;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param action
|
||||
* @param property
|
||||
*/
|
||||
public PropertyAction(int action, WebDAVProperty property)
|
||||
{
|
||||
this.action = action;
|
||||
|
Reference in New Issue
Block a user