{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/25844","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/25844/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/25844/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/25844/events","html_url":"https://github.com/symfony/symfony/issues/25844","id":289774912,"node_id":"MDU6SXNzdWUyODk3NzQ5MTI=","number":25844,"title":"404s cannot be sent in production without templating installed","user":{"login":"cilefen","id":1977311,"node_id":"MDQ6VXNlcjE5NzczMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1977311?v=4","gravatar_id":"","url":"https://api.github.com/users/cilefen","html_url":"https://github.com/cilefen","followers_url":"https://api.github.com/users/cilefen/followers","following_url":"https://api.github.com/users/cilefen/following{/other_user}","gists_url":"https://api.github.com/users/cilefen/gists{/gist_id}","starred_url":"https://api.github.com/users/cilefen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cilefen/subscriptions","organizations_url":"https://api.github.com/users/cilefen/orgs","repos_url":"https://api.github.com/users/cilefen/repos","events_url":"https://api.github.com/users/cilefen/events{/privacy}","received_events_url":"https://api.github.com/users/cilefen/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"node_id":"MDU6TGFiZWwxMDAwNzk=","url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":111254,"node_id":"MDU6TGFiZWwxMTEyNTQ=","url":"https://api.github.com/repos/symfony/symfony/labels/Routing","name":"Routing","color":"DDDDDD","default":false},{"id":237003792,"node_id":"MDU6TGFiZWwyMzcwMDM3OTI=","url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-01-18T21:04:16Z","updated_at":"2018-06-06T09:46:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | yes\r\n| Feature request? | no\r\n| BC Break report? | no\r\n| RFC?             | no\r\n| Symfony version  | 3.4.3/4.0.3\r\n\r\n<!--\r\n- Please fill in this template according to your issue.\r\n- For support request or how-tos, visit https://symfony.com/support\r\n- Otherwise, replace this comment by the description of your issue.\r\n-->\r\n\r\n## Steps to reproduce:\r\n\r\nCreate a project:\r\n\r\n    composer create-project symfony/skeleton symfony-skeleton\r\n\r\nSet the app environment to prod:\r\n\r\n    sed -i -e 's/APP_ENV=dev/APP_ENV=prod/g' .env\r\n\r\nThis can be shown also with setting the APP_ENV environment variable.\r\n\r\nAdd a [simple controller and a route](https://symfony.com/doc/current/page_creation.html).\r\n\r\nAdd an `.htaccess` file in /public as follows (we use Apache):\r\n\r\n```apache\r\n<IfModule mod_rewrite.c>\r\n    Options -MultiViews\r\n    RewriteEngine On\r\n    RewriteCond %{REQUEST_FILENAME} !-f\r\n    RewriteRule ^(.*)$ index.php [QSA,L]\r\n</IfModule>\r\n```\r\n\r\nTry to get \"/foo\". In the prod environment, ResourceNotFoundException is not caught or converted to a 404:\r\n\r\n```\r\n2018-01-18T15:53:46-05:00 [critical] Uncaught Exception: No route found for \"GET\r\n/foo\" [Thu Jan 18 15:53:46.592760 2018] [php7:notice] [pid 66514] [client\r\n::1:58156] PHP Fatal error:  Uncaught\r\nSymfony\\\\Component\\\\Routing\\\\Exception\\\\ResourceNotFoundException in\r\nvar/cache/prod/srcProdProjectContainerUrlMatcher.php:38\\nStack trace:\\n#0\r\nvendor/symfony/routing/Matcher/UrlMatcher.php(95):\r\nsrcProdProjectContainerUrlMatcher->match('/foo')\\n#1\r\nvendor/symfony/routing/Router.php(262): Symfony\\\\Component\\\\Routing\\\\Matcher\\\\Ur\r\nlMatcher->matchRequest(Object(Symfony\\\\Component\\\\HttpFoundation\\\\Request))\\n#2\r\nvendor/symfony/http-kernel/EventListener/RouterListener.php(109): Symfony\\\\Compo\r\nnent\\\\Routing\\\\Router->matchRequest(Object(Symfony\\\\Component\\\\HttpFoundation\\\\R\r\nequest))\\n#3 vendor/symfony/event-dispatcher/EventDispatcher.php(212): Symfony\\\\\r\nComponent\\\\HttpKernel\\\\EventListener\\\\RouterListener->onKernelRequest(Object(Sym\r\nfony\\\\Component\\\\HttpKernel\\\\Event\\\\GetResponseEvent), 'kernel.request',\r\nObject(Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher))\\n#4 /Users/cjm/Si\r\nin vendor/symfony/http-kernel/EventListener/RouterListener.php on line 139\r\n```"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/395011328","html_url":"https://github.com/symfony/symfony/issues/25844#issuecomment-395011328","issue_url":"https://api.github.com/repos/symfony/symfony/issues/25844","id":395011328,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTAxMTMyOA==","user":{"login":"nicolas-grekas","id":243674,"node_id":"MDQ6VXNlcjI0MzY3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/243674?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T09:46:36Z","updated_at":"2018-06-06T09:46:36Z","author_association":"MEMBER","body":"This is going to be reverted as \"not a bug\", and considered as a new feature instead.\r\n"}}
{"actor":{"display_login":"nicolas-grekas"}}