Hi,

I just upgraded a project from Symfony 2 pr 12 to beta 3.

I had previously defined an annotated route with a parameter in the
prefix:

  phones_l10n:
      resource: "@HBKCatalogueBundle/Controller/PhonesController.php"
      type:     annotation
      prefix:   /{_locale}/products

And then in my controller:

  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

   /**
    * @Route("/", name="phones")
    * @Template()
    */
    public function indexAction($_locale)

This worked great until the update. I now get this:

  url: http://myapp.dev/app_dev.php/en/products/

  -> "No route found for "GET /en/products/"
(gist: https://gist.github.com/1003767)

Oddly, app/console router:debug shows the route exists:

  $ ./app/console router:debug
  [router] Current routes
  Name                     Method Pattern
  base                     ANY    /
  default                  ANY    /{_locale}/
  phones                   ANY    /{_locale}/products/
  phones_show              ANY    /{_locale}/products/{slug}/
  phones_show_id           ANY    /{_locale}/products/show/{id}/

I also did a test and if I remove the parameter:

  phones_l10n:
      resource: "@HBKCatalogueBundle/Controller/PhonesController.php"
      type:     annotation
      prefix:   /products

The route works.

Is this a regression? Or am I missing something?

Thanks,

Ned

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to