Skip to content

Omitted fields: address province/civic name, protected criterion properties - #581

Merged
rkrenn merged 1 commit into
masterfrom
omitted-fields-gaps
Nov 30, 2026
Merged

rkrenn merged 1 commit into
masterfrom
omitted-fields-gaps

Conversation

@rkrenn

@rkrenn rkrenn commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

OmittedFields lists the VO fields holding encrypted data, which notification/mass mail template models (notification_template_model_omit_encrypted_fields), Excel VO exports and XStream serialization leave out, and the criterion properties whose search values are obfuscated in saved criteria. Both lists had gaps.

Changes

  • Exports and mails: ProbandAddressOutVO.province and ProbandAddressInVO.province (encrypted since the province was added) and ProbandAddressOutVO.civicName (assembled from the decrypted street, house number, province, zip code and city) are omitted.
  • Saved search criteria: all hash properties of encrypted proband address, bank account and file fields are protected:
    • added proband.addresses.cityNameHash and zipCodeHash (offered by master-data's criterion property definitions, so their search values were shown in clear text), and careOfHash, countryNameHash, provinceHash, streetNameHash for completeness;
    • proband.bankAccounts.* and proband.files.* were listed without the Hash suffix and matched no criterion property, so proband.files.fileNameHash (offered by master-data) was not protected. Now named after the hash fields.

City, zip code and street were not protected before (house number, entrance and door number were); not intended, saved address searches were just rare.

Not changed: ProbandOutVO initials, yearOfBirth and age (derived from encrypted name and date of birth) stay visible.

Tested

Test VM build; against the built classes: isOmitted(ProbandAddressOutVO, "province"/"civicName"), isOmitted(ProbandAddressInVO, "province") and isOmitted("proband.addresses.zipCodeHash" / "cityNameHash" / "proband.files.fileNameHash" / "proband.bankAccounts.ibanHash") are true; deliver and proband.gender stay unprotected. Not tested end to end (mail/export/criteria display).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Address details such as province, civic name, and other encrypted address fields are now omitted where applicable.
    • Bank-account and file criteria now use hash-field names, and encrypted address criteria include their corresponding hash fields. This keeps field handling consistent across address, bank-account, and file data.

…ce and civic name (assembled from street, house number, zip and city). Saved search criteria obfuscate the values of all encrypted proband address, bank account and file properties; the bank account and file entries had no Hash suffix and matched no criterion property, city and zip code were missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The omission configuration adds protected address fields and updates criterion-property omissions for bank-account, file, and encrypted address fields.

Changes: Omitted field configuration

Layer / File(s) Summary
Address and criterion-property omissions
core/src/main/java/org/phoenixctms/ctsms/util/OmittedFields.java
The protected output fields for ProbandAddressOutVO now include civicName and province. The protected input fields for ProbandAddressInVO now include province. The criterion-property set uses hash-field names for bank-account and file properties, includes hashes for encrypted address fields, and retains doorNumberHash.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to 01016

This change adds missing address fields and corrects hash property names in the list of fields omitted from exports, mail templates and saved search criteria display. No concrete defect was found. Mail, export and criteria display were not tested end to end by the author, which is normal residual verification uncertainty.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: protecting address province and civic name fields and protected criterion properties in OmittedFields. The raw summary confirms OmittedFields gained province and civic…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: protecting address province and civic name fields and protected criterion properties in OmittedFields. The raw summary confirms OmittedFields gained province and civicName entries for ProbandAddressOutVO and ProbandAddressInVO, and hash-field criterion properties for bank-account, file, and encrypted address fields. The title is specific and matches the changeset. It is slightly dense, but it stays accurate.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 854136b and 0101638.

Files selected for processing: 1

  • core/src/main/java/org/phoenixctms/ctsms/util/OmittedFields.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@rkrenn
rkrenn merged commit 0a6237a into master Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant