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

EZP-31644: Fixed serialization of Compound SiteAccess matcher #3037

Merged
merged 3 commits into from
May 25, 2020
Merged

Conversation

mikadamczyk
Copy link
Contributor

@mikadamczyk mikadamczyk commented May 21, 2020

Question Answer
JIRA issue EZP-31644
Bug yes
New feature no
Target version 6.13
BC breaks no
Tests pass yes
Doc needed no

During the serialization of the compound matcher the whole container was serialized which is unnecessary (see: https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Compound.php#L127)

Also, Symfony serializer does not serialize correctly nested sub-matchers during serialization of matcher (when compound matcher is used)

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@mikadamczyk mikadamczyk self-assigned this May 21, 2020
@mikadamczyk mikadamczyk force-pushed the EZP-31644 branch 2 times, most recently from a1379a0 to 2e0a1ef Compare May 21, 2020 09:59
@alongosz alongosz requested review from a team and konradoboza May 21, 2020 10:03
@mikadamczyk mikadamczyk changed the base branch from 7.5 to 6.13 May 21, 2020 14:13
@mikadamczyk mikadamczyk force-pushed the EZP-31644 branch 3 times, most recently from e03ceac to 94e6664 Compare May 21, 2020 14:44
@micszo micszo self-assigned this May 22, 2020
Copy link
Member

@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.

Checked the list of matchers for the two regressions and new issues and didn't find exceptions now.
Tested on 1.13.5 with diff, on 2.5 with branch and on 3.0 with branch. 5.4 will be tested with another PR.
Patch for 2.5 wasn't available.

@alongosz alongosz merged commit f816402 into 6.13 May 25, 2020
@alongosz alongosz deleted the EZP-31644 branch May 25, 2020 14:34
@micszo micszo removed their assignment May 26, 2020
blankse pushed a commit to datafactory/ezpublish-kernel that referenced this pull request Nov 10, 2020
…ems#3037)

* Fixed serialization of Compound SiteAccess matcher

* Added tests for serialization of matchers

(cherry picked from commit f816402)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6 participants