Skip to content

Conversation

@jekuaitk
Copy link
Contributor

Handles #195.

  • Removes non-digits from from recipient id during maestro notification
    • Specifically ensures CPR-number will not contain dashes (XXXXXX-XXXX) as this will never work

Important

This PR is currently aimed at the master branch since the develop branch is many features ahead and a potential patch version should be without these features.

@jekuaitk jekuaitk requested a review from rimi-itk August 29, 2025 13:00
// Remove all non-digits from recipient identifier.
$recipientIdentifier = preg_replace('/[^\d]+/', '', $recipient);

$recipientLookupResult = $this->digitalPostHelper->lookupRecipient($recipientIdentifier);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a suggestion which is related directly with the changed lines:

Copy link
Collaborator

@stankut stankut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good, but a small comment/question from me.

@ds-bellcom ds-bellcom added the Incl. in the next release This issue/PR is incl. in the next release label Oct 7, 2025
@rimi-itk rimi-itk added the hotfix Changes targeting the main branch. label Oct 20, 2025
@rimi-itk rimi-itk merged commit 159453b into OS2Forms:master Oct 20, 2025
7 of 8 checks passed
@rimi-itk rimi-itk deleted the hotfix/195-maestro-notication-recipient-santizing branch October 20, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotfix Changes targeting the main branch. Incl. in the next release This issue/PR is incl. in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: os2forms_forloeb: Maestro notification attempts sending digital post that will never be delivered

4 participants