-
Notifications
You must be signed in to change notification settings - Fork 29
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
IBX-6207: Requests containing front controller script causes session-not-found exception #377
IBX-6207: Requests containing front controller script causes session-not-found exception #377
Conversation
eZ/Bundle/EzPublishCoreBundle/EventListener/SessionInitByPostListener.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vidarl Please add test coverage for that use case to \eZ\Bundle\EzPublishCoreBundle\Tests\EventListener\SessionInitByPostListenerTest
eZ/Bundle/EzPublishCoreBundle/EventListener/SessionInitByPostListener.php
Outdated
Show resolved
Hide resolved
@alongosz : Added simple test in 5c91a54. Without the fix, edit : wrong hash in initial comment.... |
eZ/Bundle/EzPublishCoreBundle/EventListener/SessionInitByPostListener.php
Outdated
Show resolved
Hide resolved
eZ/Bundle/EzPublishCoreBundle/Tests/EventListener/SessionInitByPostListenerTest.php
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi @vidarl ! Could you please rebase this PR? 😊 |
…not-found exception
…istener.php Co-authored-by: Paweł Niedzielski <[email protected]>
…ession-not-found exception
Co-authored-by: Andrew Longosz <[email protected]>
4e1746f
to
5d5a580
Compare
@micszo : Just rebased to latest 1.3 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@vidarl when the url with index.php in it is opened in the browser should this error be printed in log every second?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproduced and retested. 400 response is replaced by 404. Log entries are reduced.
Tested on Ibexa Commerce 3.3.36-dev.
(CI has canceled and skipped jobs)
v3.3
Provide the front controller script in the url ( ie http://localhost/index.php or http://localhost/foobar/index.php ) will cause SessionNotFoundException exception.
Expected behavior : RejectExplicitFrontControllerRequestsListener should kick in ensure a 404 is returned without filling up logs.
Checklist:
$ composer fix-cs
).@ezsystems/engineering-team
).