{"action":"created","comment":{"url":"https://api.github.com/repos/sulu/sulu/pulls/comments/73521177","id":73521177,"diff_hunk":"@@ -2,6 +2,18 @@\n \n ## 1.3.0-RC2\n \n+### RestController locale\n+\n+The `getLocale` method of the RestController returned the locale\n+of the user (a system locale), if no request parameter with the name\n+`locale` was passed. As RestControllers most often provide access\n+to content in content locales and not in system locales,\n+this behaviour got removed. The `getLocale` method now just returns","path":"UPGRADE.md","position":10,"original_position":10,"commit_id":"73f39b838eba7e31ca8439f46a7e630bbfe9543d","original_commit_id":"73f39b838eba7e31ca8439f46a7e630bbfe9543d","user":{"login":"marcelmoosbrugger","id":1998663,"avatar_url":"https://avatars.githubusercontent.com/u/1998663?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelmoosbrugger","html_url":"https://github.com/marcelmoosbrugger","followers_url":"https://api.github.com/users/marcelmoosbrugger/followers","following_url":"https://api.github.com/users/marcelmoosbrugger/following{/other_user}","gists_url":"https://api.github.com/users/marcelmoosbrugger/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelmoosbrugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelmoosbrugger/subscriptions","organizations_url":"https://api.github.com/users/marcelmoosbrugger/orgs","repos_url":"https://api.github.com/users/marcelmoosbrugger/repos","events_url":"https://api.github.com/users/marcelmoosbrugger/events{/privacy}","received_events_url":"https://api.github.com/users/marcelmoosbrugger/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-08-04T13:27:54Z","updated_at":"2016-08-04T13:27:54Z","html_url":"https://github.com/sulu/sulu/pull/2676#discussion_r73521177","pull_request_url":"https://api.github.com/repos/sulu/sulu/pulls/2676","_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments/73521177"},"html":{"href":"https://github.com/sulu/sulu/pull/2676#discussion_r73521177"},"pull_request":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2676"}}},"pull_request":{"url":"https://api.github.com/repos/sulu/sulu/pulls/2676","id":78812180,"html_url":"https://github.com/sulu/sulu/pull/2676","diff_url":"https://github.com/sulu/sulu/pull/2676.diff","patch_url":"https://github.com/sulu/sulu/pull/2676.patch","issue_url":"https://api.github.com/repos/sulu/sulu/issues/2676","number":2676,"state":"open","locked":false,"title":"removed the user's system language as the default content language","user":{"login":"marcelmoosbrugger","id":1998663,"avatar_url":"https://avatars.githubusercontent.com/u/1998663?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelmoosbrugger","html_url":"https://github.com/marcelmoosbrugger","followers_url":"https://api.github.com/users/marcelmoosbrugger/followers","following_url":"https://api.github.com/users/marcelmoosbrugger/following{/other_user}","gists_url":"https://api.github.com/users/marcelmoosbrugger/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelmoosbrugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelmoosbrugger/subscriptions","organizations_url":"https://api.github.com/users/marcelmoosbrugger/orgs","repos_url":"https://api.github.com/users/marcelmoosbrugger/repos","events_url":"https://api.github.com/users/marcelmoosbrugger/events{/privacy}","received_events_url":"https://api.github.com/users/marcelmoosbrugger/received_events","type":"User","site_admin":false},"body":"| Q | A\r\n| --- | ---\r\n| Bug fix? | yes\r\n| New feature? | no\r\n| BC breaks? | yes\r\n| Deprecations? | no\r\n| Fixed tickets | none\r\n| Related issues/PRs | https://github.com/massiveart/husky/pull/695\r\n| License | MIT\r\n| Documentation PR | none\r\n\r\n#### What's in this PR?\r\n\r\nIn almost every section of Sulu the user's system locale was used as the fallback if no locale was given. This PR removes this behavior in sections where this is not appropriate.\r\n\r\n#### Why?\r\n\r\nRecently the system locales got removed as content languages. That means if a locale is just for the backend and there is no webspace etc. which also uses this locale, it is not (and should not be) possible to create content in this locale. The fact that everywhere the user's system locale was used as a fallback, made Sulu inoperative when such a locale was used in the backend.\r\n\r\n","created_at":"2016-07-26T08:41:28Z","updated_at":"2016-08-04T13:27:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"641155981fcf6a82ff860dc18b8f222ca3ef56e5","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sulu/sulu/milestones/16","html_url":"https://github.com/sulu/sulu/milestones/Release%201.3","labels_url":"https://api.github.com/repos/sulu/sulu/milestones/16/labels","id":1447256,"number":16,"title":"Release 1.3","description":"","creator":{"login":"chirimoya","id":627313,"avatar_url":"https://avatars.githubusercontent.com/u/627313?v=3","gravatar_id":"","url":"https://api.github.com/users/chirimoya","html_url":"https://github.com/chirimoya","followers_url":"https://api.github.com/users/chirimoya/followers","following_url":"https://api.github.com/users/chirimoya/following{/other_user}","gists_url":"https://api.github.com/users/chirimoya/gists{/gist_id}","starred_url":"https://api.github.com/users/chirimoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirimoya/subscriptions","organizations_url":"https://api.github.com/users/chirimoya/orgs","repos_url":"https://api.github.com/users/chirimoya/repos","events_url":"https://api.github.com/users/chirimoya/events{/privacy}","received_events_url":"https://api.github.com/users/chirimoya/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":106,"state":"open","created_at":"2015-12-07T09:55:53Z","updated_at":"2016-08-04T10:21:00Z","due_on":"2016-07-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/sulu/sulu/pulls/2676/commits","review_comments_url":"https://api.github.com/repos/sulu/sulu/pulls/2676/comments","review_comment_url":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/2676/comments","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/73f39b838eba7e31ca8439f46a7e630bbfe9543d","head":{"label":"marcelmoosbrugger:bugfix/default-locale","ref":"bugfix/default-locale","sha":"73f39b838eba7e31ca8439f46a7e630bbfe9543d","user":{"login":"marcelmoosbrugger","id":1998663,"avatar_url":"https://avatars.githubusercontent.com/u/1998663?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelmoosbrugger","html_url":"https://github.com/marcelmoosbrugger","followers_url":"https://api.github.com/users/marcelmoosbrugger/followers","following_url":"https://api.github.com/users/marcelmoosbrugger/following{/other_user}","gists_url":"https://api.github.com/users/marcelmoosbrugger/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelmoosbrugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelmoosbrugger/subscriptions","organizations_url":"https://api.github.com/users/marcelmoosbrugger/orgs","repos_url":"https://api.github.com/users/marcelmoosbrugger/repos","events_url":"https://api.github.com/users/marcelmoosbrugger/events{/privacy}","received_events_url":"https://api.github.com/users/marcelmoosbrugger/received_events","type":"User","site_admin":false},"repo":{"id":62557084,"name":"sulu","full_name":"marcelmoosbrugger/sulu","owner":{"login":"marcelmoosbrugger","id":1998663,"avatar_url":"https://avatars.githubusercontent.com/u/1998663?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelmoosbrugger","html_url":"https://github.com/marcelmoosbrugger","followers_url":"https://api.github.com/users/marcelmoosbrugger/followers","following_url":"https://api.github.com/users/marcelmoosbrugger/following{/other_user}","gists_url":"https://api.github.com/users/marcelmoosbrugger/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelmoosbrugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelmoosbrugger/subscriptions","organizations_url":"https://api.github.com/users/marcelmoosbrugger/orgs","repos_url":"https://api.github.com/users/marcelmoosbrugger/repos","events_url":"https://api.github.com/users/marcelmoosbrugger/events{/privacy}","received_events_url":"https://api.github.com/users/marcelmoosbrugger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcelmoosbrugger/sulu","description":"Sulu core bundles & components","fork":true,"url":"https://api.github.com/repos/marcelmoosbrugger/sulu","forks_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/forks","keys_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/teams","hooks_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/hooks","issue_events_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/events","assignees_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/tags","blobs_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/languages","stargazers_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/stargazers","contributors_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/contributors","subscribers_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/subscribers","subscription_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/subscription","commits_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/merges","archive_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/downloads","issues_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/labels{/name}","releases_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/marcelmoosbrugger/sulu/deployments","created_at":"2016-07-04T11:26:26Z","updated_at":"2016-07-04T11:26:34Z","pushed_at":"2016-08-04T13:09:26Z","git_url":"git://github.com/marcelmoosbrugger/sulu.git","ssh_url":"git@github.com:marcelmoosbrugger/sulu.git","clone_url":"https://github.com/marcelmoosbrugger/sulu.git","svn_url":"https://github.com/marcelmoosbrugger/sulu","homepage":"sulu.io","size":78829,"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:develop","ref":"develop","sha":"0418309445ca627df6408cf9b216169ca035e6de","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu/sulu","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu/sulu","forks_url":"https://api.github.com/repos/sulu/sulu/forks","keys_url":"https://api.github.com/repos/sulu/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/sulu/teams","hooks_url":"https://api.github.com/repos/sulu/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/sulu/events","assignees_url":"https://api.github.com/repos/sulu/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/sulu/tags","blobs_url":"https://api.github.com/repos/sulu/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu/sulu/subscription","commits_url":"https://api.github.com/repos/sulu/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/sulu/merges","archive_url":"https://api.github.com/repos/sulu/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/sulu/downloads","issues_url":"https://api.github.com/repos/sulu/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/sulu/deployments","created_at":"2013-10-18T12:57:02Z","updated_at":"2016-08-03T07:56:24Z","pushed_at":"2016-08-04T12:53:03Z","git_url":"git://github.com/sulu/sulu.git","ssh_url":"git@github.com:sulu/sulu.git","clone_url":"https://github.com/sulu/sulu.git","svn_url":"https://github.com/sulu/sulu","homepage":"sulu.io","size":89321,"stargazers_count":139,"watchers_count":139,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":452,"forks":53,"open_issues":452,"watchers":139,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2676"},"html":{"href":"https://github.com/sulu/sulu/pull/2676"},"issue":{"href":"https://api.github.com/repos/sulu/sulu/issues/2676"},"comments":{"href":"https://api.github.com/repos/sulu/sulu/issues/2676/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2676/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2676/commits"},"statuses":{"href":"https://api.github.com/repos/sulu/sulu/statuses/73f39b838eba7e31ca8439f46a7e630bbfe9543d"}}}}
{"actor":{"display_login":"marcelmoosbrugger"}}