Skip to content

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

Merged
Steveb-p merged 2 commits intoibexa:4.6from
emodric:patch-2
Feb 5, 2025
Merged

IBX-9421: Fixed global @serializer service overwriting Ibexa serializer variant#468
Steveb-p merged 2 commits intoibexa:4.6from
emodric:patch-2

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
Co-authored-by: Paweł Niedzielski <pawel.tadeusz.niedzielski@gmail.com>
@sonarqubecloud
Copy link

@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