8000 [bug][Profiler] Route matching logs do not respect host in routing files · Issue #6744 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[bug][Profiler] Route matching logs do not respect host in routing files #6744
Closed
@luiges90

Description

@luiges90

In the routing page under profiler, the route matching logs does not take host in the routing files into account, and giving inconsistent results with the actual routed page. This could be a hurdle in debugging.

i.e. with the following configuration, going into example.com will show mobile_homepage being matched, despite a 404 error is thrown.

/* app/config/routing.yml */
mobile:
    resource: "@AcmeMobileBundle/Resources/config/routing.yml"
    host: m.example.com
    prefix:   /

desktop:
    resource: "@AcmeDesktopBundle/Resources/config/routing.yml"
    prefix:   /
/* src/Acme/MobileBundle/Resources/config/routing.yml */
mobile_homepage:
    pattern:  /
    defaults: { _controller: AcmeMobileBundle:some:controller }
/* src/Acme/DesktopBundle/Resources/config/routing.yml */
desktop_homepage:
    pattern:  /page/
    defaults: { _controller: AcmeDesktopBundle:some:controller }

Always reproducible.

I am on Sf 2.2.0-DEV (6755546) with PHP 5.4.4 on Mac OS X 10.7.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0