8000 [Mailer] Fix mailer signer configuration issues by eliasfernandez · Pull Request #59855 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@eliasfernandez
Copy link
Contributor
Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59854
License MIT

Explanation here: #59854

$smimeSigner = $container->getDefinition('mailer.smime_signer');
$smimeSigner->setArgument(0, $config['smime_signer']['key']);
$smimeSigner->setArgument(1, $config['smime_signer']['certificate']);
$smimeSigner->setArgument(0, $config['smime_signer']['certificate']);
Copy link
Member

Choose a reason for hiding this comment

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

the abstract args in mailer.smime_signer are describing key as the first argument. Are those descriptions wrong as well ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the abstract args in mailer.smime_signer are describing key as the first argument. Are those descriptions wrong as well ?

Yes, I think so. Looks like the abstract_arg is not affecting in the scenario case described in the PR but probably is worth changing it in the Configuration and schema files.

Copy link
Member

Choose a reason for hiding this comment

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

the description in abstract_arg is used if you forget to configure the argument to replace the abstract arg. As this line overrides the argument, you won't get an error message saying you forget to configure the key. But it is weird if descriptions don't match.

Copy link
Member

Choose a reason for hiding this comment

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

Configuration and schema don't need to change. Those don't describe service definitions with ordered parameters. The order is not relevant there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the clarification. I'll rollback Configuration and schema changes.

@eliasfernandez eliasfernandez force-pushed the 7.3 branch 2 times, most recently from 4f7e469 to d8ba332 Compare February 25, 2025 17:04
@carsonbot carsonbot changed the title bug #59854 Fix mailer signer configuration issues [Mailer] bug #59854 Fix mailer signer configuration issues Feb 25, 2025
@OskarStark OskarStark changed the title [Mailer] bug #59854 Fix mailer signer configuration issues [Mailer] Fix mailer signer configuration issues Feb 25, 2025
Copy link
Contributor
@Spomky Spomky left a comment

Choose a reason for hiding this comment

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

Last changes look good to me.
Many thanks.

@fabpot
Copy link
Member
fabpot commented Feb 26, 2025

Thank you @eliasfernandez.

@fabpot fabpot merged commit 9a918ee into symfony:7.3 Feb 26, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mailer] Mailer dkim and smime misconfiguration

6 participants

0