diff --git a/developer_manual/release_notes/critical_changes.rst b/developer_manual/release_notes/critical_changes.rst index 3a1492adda9..ccd55f5307b 100644 --- a/developer_manual/release_notes/critical_changes.rst +++ b/developer_manual/release_notes/critical_changes.rst @@ -64,6 +64,11 @@ Removed back-end APIs - ``\OCP\AppFramework\Http\StrictContentSecurityPolicy`` - ``\OCP\AppFramework\Http\StrictEvalContentSecurityPolicy`` - ``\OCP\AppFramework\Http\StrictInlineContentSecurityPolicy`` +- Various methods from the legacy ``OC_Util`` static class were removed. + - Instead of ``\OC_Util::encodePath`` use ``\OCP\Util::encodePath``. + - Instead of ``\OC_Util::sanitizeHTML`` use ``\OCP\Util::sanitizeHTML`` + - Instead of ``\OC_Util::redirectToDefaultPage`` and ``\OC_Util::getDefaultPageUrl`` use ``\OCP\IUrlGenerator::linkToDefaultPageUrl`` + - Instead of ``\OC_Util::checkAdminUser`` use ``IGroupManager::class::isAdmin`` Unified sharing diff --git a/developer_manual/release_notes/deprecations.rst b/developer_manual/release_notes/deprecations.rst index 27420ed9002..75965bfb926 100644 --- a/developer_manual/release_notes/deprecations.rst +++ b/developer_manual/release_notes/deprecations.rst @@ -20,6 +20,12 @@ New deprecations .. todo:: This page needs a section for every new deprecation. +- ``\OCP\Util::setChannel`` is now deprecated and you need to use ``\OCP\ServerVersion::setChannel`` instead. +- ``\OCP\Util::linkToAbsolute`` is now deprecated and you need to use ``\OCP\IUrlGenerator::getAbsoluteUrl`` and ``\OCP\IUrlGenerator::linkTo`` instead. +- ``\OCP\Util::linkToRemove`` is now deprecated and you need to use ``\OCP\IUrlGenerator::linkToRemote`` instead. +- ``\OCP\Util::isPublicLinkPasswordRequired`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkEnforcePassword`` instead. +- ``\OCP\Util::isDefaultExpireDateEnforced`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced`` instead. + Older deprecations ------------------