Skip to content

Conversation

ishakuta
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #9
License MIT
Doc PR

According to @alipek:
"This commit show problem with serialize Acl with many FieldEntry objects contains same sid."
symfony/symfony#12873
and issue created in symfony repo symfony/symfony#12875 and closed cause of acl component was moved into separate repository.

alipek and others added 2 commits October 15, 2015 20:38
- change serialize input format
  - to avoid segmentation fault on php 5.5.26 os x
  - to make it exactly the same format as used internally by Acl::serialize
- fix field entry unserialize in case when few FieldEntry instances has save SecurityIdentityInterface instance
@ishakuta
Copy link
Contributor Author

Updated PR with a fix proposal

@ishakuta ishakuta changed the title Test to show FieldEntry serialization Bug Test to show FieldEntry serialization bug and a fix proposal Oct 16, 2015
@nicolas-grekas nicolas-grekas changed the base branch from master to main November 19, 2020 12:30
@wouterj
Copy link
Member

wouterj commented Jul 19, 2021

Hi @ishakuta! Sorry for the embarrassing long silence here. We modernized some parts of this library last week and I can't replicate this bug anymore. Either it was fixed in the currently minimal PHP version, or it was fixed when changing to the better PHP serialization (ref #90).

Either way, I've extracted the test from this PR (ref #94) to make sure this bug will not occur anymore. Thanks for creating a reproducing test case!

@wouterj wouterj closed this Jul 19, 2021
wouterj added a commit that referenced this pull request Jul 19, 2021
This PR was merged into the 3.2 branch.

Discussion
----------

Test show FieldEntry serialization Bug

Extracted from #8

Commits
-------

41f631b Test show FieldEntry serialization Bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants