{"action":"created","comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments/204301142","pull_request_review_id":139354224,"id":204301142,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDMwMTE0Mg==","diff_hunk":"@@ -877,7 +877,13 @@ public function loadPathData($id)\n             if (empty($rows)) {\n                 // Normally this should never happen","path":"eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php","position":2,"original_position":2,"commit_id":"42d583926b50506233ee2888cb2082f32437e15f","original_commit_id":"42d583926b50506233ee2888cb2082f32437e15f","user":{"login":"ViniTou","id":19517274,"node_id":"MDQ6VXNlcjE5NTE3Mjc0","avatar_url":"https://avatars1.githubusercontent.com/u/19517274?v=4","gravatar_id":"","url":"https://api.github.com/users/ViniTou","html_url":"https://github.com/ViniTou","followers_url":"https://api.github.com/users/ViniTou/followers","following_url":"https://api.github.com/users/ViniTou/following{/other_user}","gists_url":"https://api.github.com/users/ViniTou/gists{/gist_id}","starred_url":"https://api.github.com/users/ViniTou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViniTou/subscriptions","organizations_url":"https://api.github.com/users/ViniTou/orgs","repos_url":"https://api.github.com/users/ViniTou/repos","events_url":"https://api.github.com/users/ViniTou/events{/privacy}","received_events_url":"https://api.github.com/users/ViniTou/received_events","type":"User","site_admin":false},"body":"hmm.","created_at":"2018-07-23T07:18:25Z","updated_at":"2018-07-23T07:18:30Z","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/2401#discussion_r204301142","pull_request_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments/204301142"},"html":{"href":"https://github.com/ezsystems/ezpublish-kernel/pull/2401#discussion_r204301142"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401"}}},"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401","id":203127389,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMTI3Mzg5","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/2401","diff_url":"https://github.com/ezsystems/ezpublish-kernel/pull/2401.diff","patch_url":"https://github.com/ezsystems/ezpublish-kernel/pull/2401.patch","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/2401","number":2401,"state":"open","locked":false,"title":"\"Array to string conversion\" exception when UrlAlias has non-existent parent.","user":{"login":"mateuszbieniek","id":38975612,"node_id":"MDQ6VXNlcjM4OTc1NjEy","avatar_url":"https://avatars1.githubusercontent.com/u/38975612?v=4","gravatar_id":"","url":"https://api.github.com/users/mateuszbieniek","html_url":"https://github.com/mateuszbieniek","followers_url":"https://api.github.com/users/mateuszbieniek/followers","following_url":"https://api.github.com/users/mateuszbieniek/following{/other_user}","gists_url":"https://api.github.com/users/mateuszbieniek/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszbieniek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszbieniek/subscriptions","organizations_url":"https://api.github.com/users/mateuszbieniek/orgs","repos_url":"https://api.github.com/users/mateuszbieniek/repos","events_url":"https://api.github.com/users/mateuszbieniek/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszbieniek/received_events","type":"User","site_admin":false},"body":"| Question           | Answer\r\n| ------------------ | ------------------\r\n| **Bug**| yes\r\n| **New feature**    | no\r\n| **Target version** | `6.x`,`7.x`\r\n| **BC breaks**      | no\r\n| **Tests pass**     | yes\r\n| **Doc needed**     | no\r\n\r\nBroken UrlAliast (for example with not-existent parent) will throw \"Array to string conversion\" exception, which is very misleading. This happens because `$path` for a proper exception is generated via `implode` with an array of arrays as a parameter (not array of strings).\r\n\r\nThis PR fixes it, so instead `RuntimeException: \"Path ({$path}...) is broken, last id is '{$id}'` will be thrown. \r\n\r\n**TODO**:\r\n- [x] Implement feature / fix a bug.\r\n- [x] Ask for Code Review.\r\n","created_at":"2018-07-23T07:09:44Z","updated_at":"2018-07-23T07:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77846458e6df56ea91604fcfd7eb4e8f61a375de","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andrerom","id":289757,"node_id":"MDQ6VXNlcjI4OTc1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/289757?v=4","gravatar_id":"","url":"https://api.github.com/users/andrerom","html_url":"https://github.com/andrerom","followers_url":"https://api.github.com/users/andrerom/followers","following_url":"https://api.github.com/users/andrerom/following{/other_user}","gists_url":"https://api.github.com/users/andrerom/gists{/gist_id}","starred_url":"https://api.github.com/users/andrerom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrerom/subscriptions","organizations_url":"https://api.github.com/users/andrerom/orgs","repos_url":"https://api.github.com/users/andrerom/repos","events_url":"https://api.github.com/users/andrerom/events{/privacy}","received_events_url":"https://api.github.com/users/andrerom/received_events","type":"User","site_admin":false},{"login":"alongosz","id":7099219,"node_id":"MDQ6VXNlcjcwOTkyMTk=","avatar_url":"https://avatars1.githubusercontent.com/u/7099219?v=4","gravatar_id":"","url":"https://api.github.com/users/alongosz","html_url":"https://github.com/alongosz","followers_url":"https://api.github.com/users/alongosz/followers","following_url":"https://api.github.com/users/alongosz/following{/other_user}","gists_url":"https://api.github.com/users/alongosz/gists{/gist_id}","starred_url":"https://api.github.com/users/alongosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alongosz/subscriptions","organizations_url":"https://api.github.com/users/alongosz/orgs","repos_url":"https://api.github.com/users/alongosz/repos","events_url":"https://api.github.com/users/alongosz/events{/privacy}","received_events_url":"https://api.github.com/users/alongosz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401/commits","review_comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401/comments","review_comment_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/2401/comments","statuses_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/statuses/42d583926b50506233ee2888cb2082f32437e15f","head":{"label":"mateuszbieniek:uraliases_array_to_string_exception","ref":"uraliases_array_to_string_exception","sha":"42d583926b50506233ee2888cb2082f32437e15f","user":{"login":"mateuszbieniek","id":38975612,"node_id":"MDQ6VXNlcjM4OTc1NjEy","avatar_url":"https://avatars1.githubusercontent.com/u/38975612?v=4","gravatar_id":"","url":"https://api.github.com/users/mateuszbieniek","html_url":"https://github.com/mateuszbieniek","followers_url":"https://api.github.com/users/mateuszbieniek/followers","following_url":"https://api.github.com/users/mateuszbieniek/following{/other_user}","gists_url":"https://api.github.com/users/mateuszbieniek/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszbieniek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszbieniek/subscriptions","organizations_url":"https://api.github.com/users/mateuszbieniek/orgs","repos_url":"https://api.github.com/users/mateuszbieniek/repos","events_url":"https://api.github.com/users/mateuszbieniek/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszbieniek/received_events","type":"User","site_admin":false},"repo":{"id":135286856,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUyODY4NTY=","name":"ezpublish-kernel","full_name":"mateuszbieniek/ezpublish-kernel","owner":{"login":"mateuszbieniek","id":38975612,"node_id":"MDQ6VXNlcjM4OTc1NjEy","avatar_url":"https://avatars1.githubusercontent.com/u/38975612?v=4","gravatar_id":"","url":"https://api.github.com/users/mateuszbieniek","html_url":"https://github.com/mateuszbieniek","followers_url":"https://api.github.com/users/mateuszbieniek/followers","following_url":"https://api.github.com/users/mateuszbieniek/following{/other_user}","gists_url":"https://api.github.com/users/mateuszbieniek/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszbieniek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszbieniek/subscriptions","organizations_url":"https://api.github.com/users/mateuszbieniek/orgs","repos_url":"https://api.github.com/users/mateuszbieniek/repos","events_url":"https://api.github.com/users/mateuszbieniek/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszbieniek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mateuszbieniek/ezpublish-kernel","description":"Kernel (Repository, MVC layer, REST) for eZ Platform","fork":true,"url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel","forks_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/forks","keys_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/teams","hooks_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/hooks","issue_events_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/issues/events{/number}","events_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/events","assignees_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/assignees{/user}","branches_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/branches{/branch}","tags_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/tags","blobs_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/git/refs{/sha}","trees_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/statuses/{sha}","languages_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/languages","stargazers_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/stargazers","contributors_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/contributors","subscribers_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/subscribers","subscription_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/subscription","commits_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/commits{/sha}","git_commits_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/git/commits{/sha}","comments_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/comments{/number}","issue_comment_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/issues/comments{/number}","contents_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/contents/{+path}","compare_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/merges","archive_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/downloads","issues_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/issues{/number}","pulls_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/pulls{/number}","milestones_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/milestones{/number}","notifications_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/labels{/name}","releases_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/releases{/id}","deployments_url":"https://api.github.com/repos/mateuszbieniek/ezpublish-kernel/deployments","created_at":"2018-05-29T11:36:15Z","updated_at":"2018-05-29T11:36:27Z","pushed_at":"2018-07-23T06:58:53Z","git_url":"git://github.com/mateuszbieniek/ezpublish-kernel.git","ssh_url":"git@github.com:mateuszbieniek/ezpublish-kernel.git","clone_url":"https://github.com/mateuszbieniek/ezpublish-kernel.git","svn_url":"https://github.com/mateuszbieniek/ezpublish-kernel","homepage":"http://ezplatform.com/","size":51193,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ezsystems:6.7","ref":"6.7","sha":"2ba68d3b89e8071bdb63f9ade6a6729fa29abfa6","user":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":1663890,"node_id":"MDEwOlJlcG9zaXRvcnkxNjYzODkw","name":"ezpublish-kernel","full_name":"ezsystems/ezpublish-kernel","owner":{"login":"ezsystems","id":295311,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTMxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/295311?v=4","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/ezpublish-kernel","description":"Kernel (Repository, MVC layer, REST) for eZ Platform","fork":false,"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel","forks_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/forks","keys_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/teams","hooks_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/events","assignees_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/tags","blobs_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/languages","stargazers_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/subscription","commits_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/merges","archive_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/downloads","issues_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/releases{/id}","deployments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/deployments","created_at":"2011-04-26T08:54:24Z","updated_at":"2018-07-19T09:46:45Z","pushed_at":"2018-07-23T07:09:45Z","git_url":"git://github.com/ezsystems/ezpublish-kernel.git","ssh_url":"git@github.com:ezsystems/ezpublish-kernel.git","clone_url":"https://github.com/ezsystems/ezpublish-kernel.git","svn_url":"https://github.com/ezsystems/ezpublish-kernel","homepage":"http://ezplatform.com/","size":51546,"stargazers_count":144,"watchers_count":144,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":200,"mirror_url":null,"archived":false,"open_issues_count":87,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":200,"open_issues":87,"watchers":144,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401"},"html":{"href":"https://github.com/ezsystems/ezpublish-kernel/pull/2401"},"issue":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/2401"},"comments":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/2401/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/2401/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/statuses/42d583926b50506233ee2888cb2082f32437e15f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ViniTou"}}