[Bug] Redaction uses the default country packs, not the configured ones #512
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#512
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PrivacyProjection._project(lib/services/privacy/privacy_projection.dart, around line 148) builds itsPrivacyScannerwithout passingregions:, so it falls back todefaultPrivacyRegionsfromprivacy_scanner.dart. The warning scanner does it correctly:lib/state/privacy_provider.dartpassessettings.privacyRegions.What goes wrong. Turn a country pack off and export or present: you get black boxes over hits OciWacht never reported to you. Turn an extra pack on and the reverse happens — the finding shows in the quality panel but the value is not redacted. Preview and export disagree, exactly where the user is relying on the warning to decide what to share.
Before fixing, weigh it. The doc comment on
_projectexplains why the master switch and the disabled rules are deliberately treated differently there. Regions most likely belong with the disabled rules, so they should be passed through — but check that againstdocs/design/OCIWACHT.mdrather than assuming.Regression test required. A deck with a hit from a non-default region, exercised with that pack on and off, comparing the reported findings against what redaction actually removes. It must have been red once.
This is the same class of gap as the
checklistScopefield (fixed earlier): there, a field was scanned but never redacted. That fix produced a parity test comparing scan fields against projection fields. This one is the same shape one level up — the rules differ between scanning and redacting — so it belongs next to that test.Pre-existing behaviour. Found during a privacy review on
feat/gebruiksgemak-eerste-minuten; not caused by that branch.