Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-9421: Fixed global @serializer service overwriting Ibexa serializer variant #468

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

emodric
Copy link
Contributor

@emodric emodric commented Jan 27, 2025

🎫 Issue IBX-9421

Description:

The problem here stems from Ibexa\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer being erroneously tagged with serializer.normalizer tag, which means that once the global @serializer service is initialized (e.g. when used in a listener as outlined in the issue description), the Ibexa variant of the serializer which was injected into CompoundMatcherNormalizer will be overwritten by the global instance, causing the problem described in the issue.

@emodric emodric changed the title IBX-9421: Fix global @serializer service overwriting Ibexa serializer… IBX-9421: Fix global @serializer service overwriting Ibexa serializer variant Jan 27, 2025
@adamwojs adamwojs requested a review from a team January 30, 2025 15:55
src/bundle/Core/Resources/config/routing.yml Outdated Show resolved Hide resolved
@alongosz alongosz changed the title IBX-9421: Fix global @serializer service overwriting Ibexa serializer variant IBX-9421: Fixed global @serializer service overwriting Ibexa serializer variant Jan 31, 2025
Copy link
Contributor

@micszo micszo left a comment

Choose a reason for hiding this comment

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

Reproduced and retested on frontend and in back-office.

Tested on Ibexa Commerce 4.6.17-dev.

@micszo micszo removed their assignment Feb 5, 2025
@Steveb-p Steveb-p merged commit aec2544 into ibexa:4.6 Feb 5, 2025
22 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.

9 participants