Skip to content

Fix critical extension when reseting paged control #39092

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

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

jderusse
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

The issue has been introduced here in #38392 and prevent performing an operation after fetched a paginated result => ldap throws an Could not XXX: Critical extension is unavailable

At this line: https://github.com/symfony/symfony/pull/38392/files#diff-24b79f3ac1a99938f5acb158a450e38d30c1984a5d333b5b20f2c38a73d10e31L183, the previous code called ldap_control_paged_result($con, 0); using the default value (false) for the $critical argument.
The replaced version always use true.

This PR restore the previous behavior by using false when reseting the pagination.

@chalasr
Copy link
Member

chalasr commented Nov 16, 2020

Good catch, thanks Jérémy.

@chalasr chalasr merged commit beeafb1 into symfony:4.4 Nov 16, 2020
@fabpot fabpot mentioned this pull request Nov 21, 2020
@jderusse jderusse deleted the ldap-fix branch November 21, 2020 13:56
This was referenced Nov 29, 2020
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.

4 participants