{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1337","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1337/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1337/comments","events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1337/events","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1337","id":94682560,"number":1337,"title":"EZP-24083 do not save empty url","user":{"login":"iherak","id":5854428,"avatar_url":"https://avatars.githubusercontent.com/u/5854428?v=3","gravatar_id":"","url":"https://api.github.com/users/iherak","html_url":"https://github.com/iherak","followers_url":"https://api.github.com/users/iherak/followers","following_url":"https://api.github.com/users/iherak/following{/other_user}","gists_url":"https://api.github.com/users/iherak/gists{/gist_id}","starred_url":"https://api.github.com/users/iherak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iherak/subscriptions","organizations_url":"https://api.github.com/users/iherak/orgs","repos_url":"https://api.github.com/users/iherak/repos","events_url":"https://api.github.com/users/iherak/events{/privacy}","received_events_url":"https://api.github.com/users/iherak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-13T09:44:15Z","updated_at":"2015-07-16T12:30:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/1337","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1337","diff_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1337.diff","patch_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1337.patch"},"body":"This PR fixes https://jira.ez.no/browse/EZP-24083.\r\n\r\nThe issue is present when creating and/or updating content with empty ezurl field type.\r\nIn that case we end up with multiple entries in the database with url set to null and the same md5 hash.\r\n\r\nI have added a simple check to prevent this from happening, which is consistent with behavior in the legacy stack."},"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/comments/121943378","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1337#issuecomment-121943378","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1337","id":121943378,"user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T12:30:12Z","updated_at":"2015-07-16T12:30:12Z","body":"+1 :-)"}}