From e7d891ba8d7c083a6facd7d87c343d0db6c90b10 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 17 Jul 2024 14:09:58 +0200 Subject: [PATCH] feat(developer): Add note about `IFilenameValidator` Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen --- .../app_upgrade_guide/upgrade_to_30.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst index 281ed3fc929..799d87e06f8 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst @@ -103,6 +103,7 @@ Added APIs - ``OCP\AppFramework\Http\Attribute\OpenAPI::SCOPE_EX_APP`` attribute for scoping APIs only to be used by ExApps. - ``OCP\AppFramework\Http\Attribute\ExAppRequired`` attribute for restricting controller methods to be only accessible by ExApps. - ``OCP\Collaboration\Reference\IPublicReferenceProvider`` added for reference providers that support reference lookups from public shares. +- ``OCP\Files\IFilenameValidator`` was added to allow storage independent filename validation. Changed APIs ^^^^^^^^^^^^ @@ -140,5 +141,8 @@ Deprecated APIs Removed APIs ^^^^^^^^^^^^ +- ``OCP\Util::isValidFileName`` was deprecated in 8.1.0 and is now removed, use either ``OCP\Files\Storage\IStorage::verifyPath`` or the new ``OCP\Files\IFilenameValidator``. +- ``OCP\Util::getForbiddenFileNameChars`` was removed, use either ``OCP\Files\Storage\IStorage::verifyPath`` or the new ``OCP\Files\IFilenameValidator`` for filename validation. + Removed events ^^^^^^^^^^^^^^