• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/webdavserver.php
  • Класс: CDavWebDavServer
  • Вызов: CDavWebDavServer::UNLOCK
protected function UNLOCK($httpLocktoken)
{
	/** @var CDavRequest $request */
	$request = $this->request;
	$requestPath = Encoding::convertEncoding($request->getPath(), 'UTF-8', SITE_CHARSET);

	list($storage, $path) = self::ParsePath($requestPath);

	if (!$storage)
	{
		return '409 Conflict';
	}

	$path = CDavVirtualFileSystem::GetLockPath("WS" . ($storage->getId()), $path);

	return (CDavVirtualFileSystem::Unlock($path, $httpLocktoken) ? '204 No Content' : '409 Conflict');
}