RedactorProvider returns ErasingRedactor for DataClassification.None type #5265
Labels
area-compliance
bug
This issue describes a behavior which is not expected - a bug.
work in progress 🚧
Description
RedactorProvider.GetRedactor(DataClassification.None)
returnsErasingRedactor
instead ofNullRedactor
. However a property that is decorated with[NoDataClassification]
attribute is not redacted (which is expected though).Reproduction Steps
I have enabled and configured redaction in my code.
Code:
Set up a dummy API controller with this portion:
This redactor is of type
ErasingRedactor
- validated from unit tests and with breakpoints in the code.Test:
The above assertion failed with
ErasingRedactor
received.Expected behavior
I expect
NullRedactor
to be returned for DataClassification.None classification type.Actual behavior
ErasingRedactor
is returned for DataClassification.None classification type.Regression?
Not sure.
Known Workarounds
Explicitly set the redactor for
DataClassification.None
type using:Configuration
I use Windows and the latest Compliance.Redaction/Abstraction SDKs.
Other information
No response
The text was updated successfully, but these errors were encountered: