{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/717","labels_url":"https://api.github.com/repos/nijel/weblate/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/717/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/717/events","html_url":"https://github.com/nijel/weblate/issues/717","id":69053216,"number":717,"title":"Duplicate msgid's in po files causes error page","user":{"login":"lainbsd","id":3103729,"avatar_url":"https://avatars.githubusercontent.com/u/3103729?v=3","gravatar_id":"","url":"https://api.github.com/users/lainbsd","html_url":"https://github.com/lainbsd","followers_url":"https://api.github.com/users/lainbsd/followers","following_url":"https://api.github.com/users/lainbsd/following{/other_user}","gists_url":"https://api.github.com/users/lainbsd/gists{/gist_id}","starred_url":"https://api.github.com/users/lainbsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lainbsd/subscriptions","organizations_url":"https://api.github.com/users/lainbsd/orgs","repos_url":"https://api.github.com/users/lainbsd/repos","events_url":"https://api.github.com/users/lainbsd/events{/privacy}","received_events_url":"https://api.github.com/users/lainbsd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-17T03:15:11Z","updated_at":"2015-04-17T06:59:54Z","closed_at":"2015-04-17T06:59:54Z","body":"When attempting to add a subproject or pull from a git repository that contains a po file with duplicate source strings an error page shows and (correctly as duplicates shouldn't enter Weblate I assume) nothing is imported.\r\n\r\n```\r\nERROR Internal Server Error: /admin/trans/subproject/add/\r\nAttributeError at /admin/trans/subproject/add/ type \r\nobject 'Change' has no attribute ‘object'\r\n```\r\n\r\nAlthough po files should not contain such duplicates in the first place the po files created by Translate Toolkit will have duplicates if the source format had them, so this problem may exist when importing other file formats to Weblate, especially for CSV and formats that don't enforce unique keys. \r\n\r\nA notice on the UI side that the error is due to duplicate source strings might be preferable if this is reproducible.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11331220-duplicate-msgid-s-in-po-files-causes-error-page?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nijel/weblate/issues/comments/93920240","html_url":"https://github.com/nijel/weblate/issues/717#issuecomment-93920240","issue_url":"https://api.github.com/repos/nijel/weblate/issues/717","id":93920240,"user":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T06:59:54Z","updated_at":"2015-04-17T06:59:54Z","body":"Already fixed in 73eb8400, upgrade please."}}