-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken regex for allowed_deserialization_classes (#36147)
--------- Co-authored-by: Victor Dominguite <[email protected]> Co-authored-by: Elad Kalif <[email protected]> (cherry picked from commit 20cb70b)
- Loading branch information
1 parent
7331df8
commit 9d9d62e
Showing
5 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
The ``allowed_deserialization_classes`` flag now follows a glob pattern. | ||
|
||
For example if one wants to add the class ``airflow.tests.custom_class`` to the | ||
``allowed_deserialization_classes`` list, it can be done by writing the full class | ||
name (``airflow.tests.custom_class``) or a pattern such as the ones used in glob | ||
search (e.g., ``airflow.*``, ``airflow.tests.*``). | ||
|
||
If you currently use a custom regexp path make sure to rewrite it as a glob pattern. | ||
|
||
Alternatively, if you still wish to match it as a regexp pattern, add it under the new | ||
list ``allowed_deserialization_classes_regexp`` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters