{"action":"created","comment":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/39713861","id":39713861,"diff_hunk":"@@ -398,7 +398,7 @@ private function getResourceLocatorFromRequest(\n \n         $path = rtrim(implode('/', $pathParts), '/') . '/' . $fileInfo[0];\n         if (count($fileInfo) > 1) {\n-            $formatResult = $fileInfo[1];\n+            $formatResult = end($fileInfo);","path":"src/Sulu/Component/Webspace/Analyzer/WebsiteRequestAnalyzer.php","position":5,"original_position":5,"commit_id":"7dfc5e6595c11290a3d7cdfef27697bf17016f35","original_commit_id":"7dfc5e6595c11290a3d7cdfef27697bf17016f35","user":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"body":"Yeah, would say so too. And it would be neat if a testcase is added :smile: ","created_at":"2015-09-17T06:12:34Z","updated_at":"2015-09-17T06:12:34Z","html_url":"https://github.com/sulu-io/sulu/pull/1586#discussion_r39713861","pull_request_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1586","_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/39713861"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1586#discussion_r39713861"},"pull_request":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1586"}}},"pull_request":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/1586","id":45170571,"html_url":"https://github.com/sulu-io/sulu/pull/1586","diff_url":"https://github.com/sulu-io/sulu/pull/1586.diff","patch_url":"https://github.com/sulu-io/sulu/pull/1586.patch","issue_url":"https://api.github.com/repos/sulu-io/sulu/issues/1586","number":1586,"state":"open","locked":false,"title":"fix website request analyzer","user":{"login":"tschreiner","id":1625362,"avatar_url":"https://avatars.githubusercontent.com/u/1625362?v=3","gravatar_id":"","url":"https://api.github.com/users/tschreiner","html_url":"https://github.com/tschreiner","followers_url":"https://api.github.com/users/tschreiner/followers","following_url":"https://api.github.com/users/tschreiner/following{/other_user}","gists_url":"https://api.github.com/users/tschreiner/gists{/gist_id}","starred_url":"https://api.github.com/users/tschreiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschreiner/subscriptions","organizations_url":"https://api.github.com/users/tschreiner/orgs","repos_url":"https://api.github.com/users/tschreiner/repos","events_url":"https://api.github.com/users/tschreiner/events{/privacy}","received_events_url":"https://api.github.com/users/tschreiner/received_events","type":"User","site_admin":false},"body":"The ```WebsiteRequestAnalyzer``` sets the request format by exploding the requested file name by dots and extract the format from the resulting array. When a filename has multiple dots in it, the second item will be set as the request format (and not the last one as it should be).\r\nThis is behaviour is fixed by this PR.\r\n\r\nExample:\r\nA request for ```bootstrap.min.css``` results the file format ```min```. Expected would be ```css```\r\n\r\n__informations:__\r\n\r\n| q                | a\r\n| ---------------- | ---\r\n| Fixed tickets    | none\r\n| BC breaks        | none\r\n| Documentation PR | none","created_at":"2015-09-16T13:25:07Z","updated_at":"2015-09-17T06:12:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"200b7defbc2108640823ae3f7d7cdfc82ad906b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1586/commits","review_comments_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1586/comments","review_comment_url":"https://api.github.com/repos/sulu-io/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu-io/sulu/issues/1586/comments","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/7dfc5e6595c11290a3d7cdfef27697bf17016f35","head":{"label":"tschreiner:bugfix/fix-request-analyzer","ref":"bugfix/fix-request-analyzer","sha":"7dfc5e6595c11290a3d7cdfef27697bf17016f35","user":{"login":"tschreiner","id":1625362,"avatar_url":"https://avatars.githubusercontent.com/u/1625362?v=3","gravatar_id":"","url":"https://api.github.com/users/tschreiner","html_url":"https://github.com/tschreiner","followers_url":"https://api.github.com/users/tschreiner/followers","following_url":"https://api.github.com/users/tschreiner/following{/other_user}","gists_url":"https://api.github.com/users/tschreiner/gists{/gist_id}","starred_url":"https://api.github.com/users/tschreiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschreiner/subscriptions","organizations_url":"https://api.github.com/users/tschreiner/orgs","repos_url":"https://api.github.com/users/tschreiner/repos","events_url":"https://api.github.com/users/tschreiner/events{/privacy}","received_events_url":"https://api.github.com/users/tschreiner/received_events","type":"User","site_admin":false},"repo":{"id":42587520,"name":"sulu","full_name":"tschreiner/sulu","owner":{"login":"tschreiner","id":1625362,"avatar_url":"https://avatars.githubusercontent.com/u/1625362?v=3","gravatar_id":"","url":"https://api.github.com/users/tschreiner","html_url":"https://github.com/tschreiner","followers_url":"https://api.github.com/users/tschreiner/followers","following_url":"https://api.github.com/users/tschreiner/following{/other_user}","gists_url":"https://api.github.com/users/tschreiner/gists{/gist_id}","starred_url":"https://api.github.com/users/tschreiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschreiner/subscriptions","organizations_url":"https://api.github.com/users/tschreiner/orgs","repos_url":"https://api.github.com/users/tschreiner/repos","events_url":"https://api.github.com/users/tschreiner/events{/privacy}","received_events_url":"https://api.github.com/users/tschreiner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tschreiner/sulu","description":"Sulu core bundles & components","fork":true,"url":"https://api.github.com/repos/tschreiner/sulu","forks_url":"https://api.github.com/repos/tschreiner/sulu/forks","keys_url":"https://api.github.com/repos/tschreiner/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tschreiner/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tschreiner/sulu/teams","hooks_url":"https://api.github.com/repos/tschreiner/sulu/hooks","issue_events_url":"https://api.github.com/repos/tschreiner/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/tschreiner/sulu/events","assignees_url":"https://api.github.com/repos/tschreiner/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/tschreiner/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/tschreiner/sulu/tags","blobs_url":"https://api.github.com/repos/tschreiner/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tschreiner/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tschreiner/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/tschreiner/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tschreiner/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/tschreiner/sulu/languages","stargazers_url":"https://api.github.com/repos/tschreiner/sulu/stargazers","contributors_url":"https://api.github.com/repos/tschreiner/sulu/contributors","subscribers_url":"https://api.github.com/repos/tschreiner/sulu/subscribers","subscription_url":"https://api.github.com/repos/tschreiner/sulu/subscription","commits_url":"https://api.github.com/repos/tschreiner/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/tschreiner/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/tschreiner/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/tschreiner/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/tschreiner/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/tschreiner/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tschreiner/sulu/merges","archive_url":"https://api.github.com/repos/tschreiner/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tschreiner/sulu/downloads","issues_url":"https://api.github.com/repos/tschreiner/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/tschreiner/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/tschreiner/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/tschreiner/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tschreiner/sulu/labels{/name}","releases_url":"https://api.github.com/repos/tschreiner/sulu/releases{/id}","created_at":"2015-09-16T13:04:57Z","updated_at":"2015-09-16T13:05:03Z","pushed_at":"2015-09-16T13:27:33Z","git_url":"git://github.com/tschreiner/sulu.git","ssh_url":"git@github.com:tschreiner/sulu.git","clone_url":"https://github.com/tschreiner/sulu.git","svn_url":"https://github.com/tschreiner/sulu","homepage":"sulu.io","size":68492,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sulu-io:develop","ref":"develop","sha":"6a1cb46839f1107e14134204d8f331bb3cd8484a","user":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu-io/sulu","owner":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu-io/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu-io/sulu","forks_url":"https://api.github.com/repos/sulu-io/sulu/forks","keys_url":"https://api.github.com/repos/sulu-io/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu-io/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu-io/sulu/teams","hooks_url":"https://api.github.com/repos/sulu-io/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu-io/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu-io/sulu/events","assignees_url":"https://api.github.com/repos/sulu-io/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu-io/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu-io/sulu/tags","blobs_url":"https://api.github.com/repos/sulu-io/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu-io/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu-io/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu-io/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu-io/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu-io/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu-io/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu-io/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu-io/sulu/subscription","commits_url":"https://api.github.com/repos/sulu-io/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu-io/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu-io/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu-io/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu-io/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu-io/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu-io/sulu/merges","archive_url":"https://api.github.com/repos/sulu-io/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu-io/sulu/downloads","issues_url":"https://api.github.com/repos/sulu-io/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu-io/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu-io/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu-io/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu-io/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu-io/sulu/releases{/id}","created_at":"2013-10-18T12:57:02Z","updated_at":"2015-09-16T13:51:28Z","pushed_at":"2015-09-17T06:08:56Z","git_url":"git://github.com/sulu-io/sulu.git","ssh_url":"git@github.com:sulu-io/sulu.git","clone_url":"https://github.com/sulu-io/sulu.git","svn_url":"https://github.com/sulu-io/sulu","homepage":"sulu.io","size":68492,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":352,"forks":16,"open_issues":352,"watchers":69,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1586"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1586"},"issue":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1586"},"comments":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1586/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1586/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1586/commits"},"statuses":{"href":"https://api.github.com/repos/sulu-io/sulu/statuses/7dfc5e6595c11290a3d7cdfef27697bf17016f35"}}}}