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

[HttpKernel] Inline ValidateRequestListener logic into HttpKernel#19217

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

Merged
nicolas-grekas merged 1 commit intosymfony:2.7fromnicolas-grekas:drop-valid-req
Jun 29, 2016

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJun 29, 2016
edited
Loading

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

I propose to inline the listener introduced in#18688 into HttpKernel.

sstok and HeahDude reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas changed the title[HttpKernel] Remove ValidateRequestListener[HttpKernel] Inline ValidateRequestListener logic into HttpKernelJun 29, 2016
"php":">=5.3.9",
"symfony/event-dispatcher":"~2.6,>=2.6.7",
"symfony/http-foundation":"~2.7,>=2.7.15",
"symfony/http-foundation":"~2.7,>=2.7.15|~2.8,>=2.8.8",
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this will need to be"~2.8,>=2.8.8|~3.0,>=3.0.8|~3.1,>=3.1.2", when merging into 3.0

@nicolas-grekas
Copy link
MemberAuthor

Ready

@nicolas-grekas
Copy link
MemberAuthor

ping@magnusnordlander for info

{
if (self::MASTER_REQUEST ===$type) {
try {
// This will throw an exception if the headers are inconsistent.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe this comment is superfluous because the code is short and the exception message is very clear?

@nicolas-grekasnicolas-grekasforce-pushed thedrop-valid-req branch 4 times, most recently from962e1f8 to0691a22CompareJune 29, 2016 10:14
"php":">=5.3.9",
"symfony/event-dispatcher":"~2.6,>=2.6.7",
"symfony/http-foundation":"~2.7,>=2.7.15",
"symfony/http-foundation":"~2.7.15|~2.8,>=2.8.8",
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"~2.8.8|~3.0.8|~3.1,>=3.1.2" on 3.0

"php":">=5.3.9",
"symfony/event-dispatcher":"~2.6,>=2.6.7",
"symfony/http-foundation":"~2.7,>=2.7.15",
"symfony/http-foundation":"~2.7.15|~2.8.8",
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"~2.8.8|~3.0.8|~3.1.2|~3.2" on 3.0 (really this time :) )

@magnusnordlander
Copy link
Contributor

No objections from me :)

@nicolas-grekasnicolas-grekas merged commit9d3ae85 intosymfony:2.7Jun 29, 2016
nicolas-grekas added a commit that referenced this pull requestJun 29, 2016
…pKernel (nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------[HttpKernel] Inline ValidateRequestListener logic into HttpKernel| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18688#19216| License       | MIT| Doc PR        | -I propose to inline the listener introduced in#18688 into HttpKernel.Commits-------9d3ae85 [HttpKernel] Inline ValidateRequestListener logic into HttpKernel
@nicolas-grekasnicolas-grekas deleted the drop-valid-req branchJune 29, 2016 11:30
@fabpot
Copy link
Member

Why? I'm 👎 for this, that's ugly as hell!

@magnusnordlander
Copy link
Contributor

I agree that it's uglier. It does have an upside though, and that is that any project using HttpKernel will automatically get the client IP exceptions early, even if they don't use the listener in FrameworkBundle.

When I implemented#18688 I considered an approach like this for that very reason. For me, the ugliness tipped the scale towards a listener though, but both approaches have merit.

@nicolas-grekas
Copy link
MemberAuthor

See#19233

fabpot added a commit that referenced this pull requestJun 30, 2016
…catch block (magnusnordlander, nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------[HttpKernel] Move handling of conflicting origin IPs to catch block| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#19217| License       | MIT| Doc PR        | -Commits-------db84101 [HttpKernel] Add listener that checks when request has both Forwarded and X-Forwarded-For1f00b55 [HttpKernel] Move conflicting origin IPs handling to catch block
This was referencedJun 30, 2016
This was referencedJun 30, 2016
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.

5 participants

@nicolas-grekas@magnusnordlander@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp