Problem

When invalid paths like /index.phpaut are accessed, a warning is logged like:

#0 /app/web/modules/contrib/anonymous_login/src/EventSubscriber/AnonymousLoginSubscriber.php(178): Drupal\path_alias\AliasManager->getAliasByPath()
#1 [internal function]: Drupal\anonymous_login\EventSubscriber\AnonymousLoginSubscriber->redirect()
#2 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#3 /app/vendor/symfony/http-kernel/HttpKernel.php(157): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#4 /app/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#5 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()

Steps to reproduce

Install the module, open path /index.phpauth

Maybe it depends on how the webserver is configured to rewrite rules, we are using a nginx setup.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

this should fix it

fago’s picture

Priority: Normal » Major

bump. this is filling the logs. is no one else running into this?

anton4uk made their first commit to this issue’s fork.

anton4uk’s picture

Thanks, @fago. MR !27 adds the slash, as newer Symfony does, instead of skipping the request. Added unit tests.

  • anton4uk committed ec955e65 on 8.x-2.x
    Issue #3530291: Add the leading slash to paths without one
    
anton4uk’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.