Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PdoSessionHandler: fix advisory lock for pgsql#24367

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@Tobion
Copy link
Contributor

@TobionTobion commentedSep 28, 2017
edited
Loading

when session.sid_bits per_character > 4 the session id can contain non-hex-characters which will be ignored by hexdec. this can potentially result in collisions on the lock key from different sessions, e.g. the session idsaagh andaaij would have the same pgsql lock becausehexdec('aagh') === hexdec('aaij')

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#24095
LicenseMIT
Doc PR

@TobionTobion changed the titlePdoSessionHandler: fix advisory lock for pgsql when session.sid_bits_…PdoSessionHandler: fix advisory lock for pgsqlSep 28, 2017
@fabpot
Copy link
Member

Thank you@Tobion.

@fabpotfabpot merged commit0f0a6e8 intosymfony:2.7Sep 29, 2017
fabpot added a commit that referenced this pull requestSep 29, 2017
This PR was merged into the 2.7 branch.Discussion----------PdoSessionHandler: fix advisory lock for pgsqlwhen session.sid_bits per_character > 4 the session id can contain non-hex-characters which will be ignored by hexdec. this can potentially result in collisions on the lock key from different sessions, e.g. the session ids `aagh` and `aaij` would have the same pgsql lock because `hexdec('aagh') === hexdec('aaij')`| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets |#24095| License       | MIT| Doc PR        |Commits-------0f0a6e8 PdoSessionHandler: fix advisory lock for pgsql when session.sid_bits_per_character > 4
@TobionTobion deleted the fix-pdo-session-advisory-lock-bits-per-char branchSeptember 29, 2017 01:01
This was referencedOct 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Tobion@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp