{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9723","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9723/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9723/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9723/events","html_url":"https://github.com/cakephp/cakephp/issues/9723","id":188177454,"number":9723,"title":"underscore routing is not working after upgrading from 3.0.1 to 3.3.3","user":{"login":"puneeth-bikeninja","id":23352216,"avatar_url":"https://avatars.githubusercontent.com/u/23352216?v=3","gravatar_id":"","url":"https://api.github.com/users/puneeth-bikeninja","html_url":"https://github.com/puneeth-bikeninja","followers_url":"https://api.github.com/users/puneeth-bikeninja/followers","following_url":"https://api.github.com/users/puneeth-bikeninja/following{/other_user}","gists_url":"https://api.github.com/users/puneeth-bikeninja/gists{/gist_id}","starred_url":"https://api.github.com/users/puneeth-bikeninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneeth-bikeninja/subscriptions","organizations_url":"https://api.github.com/users/puneeth-bikeninja/orgs","repos_url":"https://api.github.com/users/puneeth-bikeninja/repos","events_url":"https://api.github.com/users/puneeth-bikeninja/events{/privacy}","received_events_url":"https://api.github.com/users/puneeth-bikeninja/received_events","type":"User","site_admin":false},"labels":[{"id":60600135,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Question","name":"Question","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/111","html_url":"https://github.com/cakephp/cakephp/milestones/3.3.9","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/111/labels","id":2117772,"number":111,"title":"3.3.9","description":"Bugfixes and minor features for 3.3.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":8,"state":"open","created_at":"2016-11-07T02:36:42Z","updated_at":"2016-11-09T07:19:05Z","due_on":"2016-11-20T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-11-09T06:44:01Z","updated_at":"2016-11-09T07:19:45Z","closed_at":"2016-11-09T07:19:04Z","body":"This is a (multiple allowed):\r\n\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.3.3.\r\n* Platform and Target:  Upgrading CakePHP from 3.0.1 to 3.3.3 using composer update.\r\n\r\n Below is my controller file for which \"My_Properties\" DashedRouting using underscore was working in CakePHP 3.0.1.\r\n\r\n```\r\n<?php\r\nnamespace App\\Controller;\r\nuse App\\Controller\\AppController;\r\n/**\r\n * MyProperties Controller\r\n *\r\n * @property \\App\\Model\\Table\\MyPropertiesTable $MyProperties\r\n */\r\nclass MyPropertiesController extends AppController\r\n{\r\n    /**\r\n     * Index method\r\n     *\r\n     * @return void\r\n     */\r\n    public function index()\r\n    {\r\n        $this->paginate = [\r\n            'contain' => ['Creator', 'Modifier']\r\n        ];\r\n        $this->set('myProperties', $this->paginate($this->MyProperties));\r\n        $this->set('_serialize', ['myProperties']);\r\n    }\r\n}\r\n```\r\n\r\nAfter upgrading to 3.3.3 this routing is giving me Missing Controller \"My_Properties\" exception. But MyProperties and My-Properties is able to map to MyProperties controller.\r\n\r\nIt is expected no change in this routing to be happen when cakephp is upgraded.\r\n\r\nAlso observed this happens at only Controller level. If I had a method getProperties in side MyProperties controller accessing it like \"domain/MyProperties/get_properties\"  is also working."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/259348736","html_url":"https://github.com/cakephp/cakephp/issues/9723#issuecomment-259348736","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9723","id":259348736,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T07:19:45Z","updated_at":"2016-11-09T07:19:45Z","body":"If you want to keep using your old URLs with underscore change `Router::defaultRouteClass('DashedRoute');` to `Router::defaultRouteClass('InflectedRoute');`"}}
{"actor":{"display_login":"ADmad"}}