mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged V4.1-BUG-FIX to HEAD
38589: Fixed merge issue git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@38590 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -78,17 +78,16 @@ public class UnlockMethod extends WebDAVMethod
|
||||
strLockTokenHeader = "<" + strLockTokenHeader + ">";
|
||||
}
|
||||
if (strLockTokenHeader.startsWith("<" + WebDAV.OPAQUE_LOCK_TOKEN) && strLockTokenHeader.endsWith(">"))
|
||||
{
|
||||
try
|
||||
{
|
||||
m_strLockToken = strLockTokenHeader.substring(
|
||||
WebDAV.OPAQUE_LOCK_TOKEN.length() + 1,
|
||||
strLockTokenHeader.length() - 1);
|
||||
}
|
||||
catch (IndexOutOfBoundsException e)
|
||||
{
|
||||
logger.warn("Failed to parse If header: " + strLockTokenHeader);
|
||||
try
|
||||
{
|
||||
m_strLockToken = strLockTokenHeader.substring(
|
||||
WebDAV.OPAQUE_LOCK_TOKEN.length() + 1,
|
||||
strLockTokenHeader.length() - 1);
|
||||
}
|
||||
catch (IndexOutOfBoundsException e)
|
||||
{
|
||||
logger.warn("Failed to parse If header: " + strLockTokenHeader);
|
||||
}
|
||||
}
|
||||
// ALF-11817 If the header Lock-Token is incorrect (without < and >).
|
||||
|
Reference in New Issue
Block a user