From f681487955a37dd773c9e6f35772bf86f7c191e0 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Wed, 21 Jun 2023 13:04:34 -0700 Subject: [PATCH 1/2] Increasing SafeStr character limit from 500 to 32000 --- src/fides/api/custom_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fides/api/custom_types.py b/src/fides/api/custom_types.py index 604dfbb8d5..1c12ea2df3 100644 --- a/src/fides/api/custom_types.py +++ b/src/fides/api/custom_types.py @@ -22,8 +22,8 @@ def validate(cls, value: str) -> str: # HTML Escapes value = escape(value) - if len(value) > 500: - raise ValueError("Value must be 500 characters or less.") + if len(value) > 32000: + raise ValueError("Value must be 32000 characters or less.") return value From 9884dbf5fa3f80e062fda8038d0aa9a7ce4fa3c2 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Wed, 21 Jun 2023 13:09:10 -0700 Subject: [PATCH 2/2] Updating changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b8d847224..d426a4a3be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The types of changes are: - Removed `pyodbc` in favor of `pymssql` for handling SQL Server connections [#3435](https://github.com/ethyca/fides/pull/3435) - Only create a PrivacyRequest when saving consent if at least one notice has system-wide enforcement [#3626](https://github.com/ethyca/fides/pull/3626) +- Increased the character limit for the `SafeStr` type from 500 to 32000 [#3647](https://github.com/ethyca/fides/pull/3647) ### Docs