{"action":"created","comment":{"url":"https://api.github.com/repos/molgenis/molgenis/pulls/comments/27100609","id":27100609,"diff_hunk":"@@ -507,4 +510,45 @@ public int update(Repository repo, Iterable<? extends Entity> entities, Database\n \t\t}\n \t}\n \n+\t/**\n+\t * A wrapper for a to import entity\n+\t * \n+\t * When importing, some references (Entity) are still not imported. This wrapper accepts this inconsistency in the\n+\t * dataService. For example xref and mref.\n+\t */\n+\tprivate class DefaultEntityImporter extends DefaultEntity\n+\t{\n+\t\t/**\n+\t\t * Auto generated\n+\t\t */\n+\t\tprivate static final long serialVersionUID = -5994977400560081655L;\n+\n+\t\tpublic DefaultEntityImporter(EntityMetaData entityMetaData, DataService dataService, Entity entity)\n+\t\t{\n+\t\t\tsuper(entityMetaData, dataService, entity);\n+\t\t}\n+\n+\t\t/**\n+\t\t * getEntity returns null when attributeName is not resulting in an entity\n+\t\t */\n+\t\t@Override\n+\t\tpublic Entity getEntity(String attributeName)\n+\t\t{\n+\t\t\ttry {","path":"molgenis-data-mysql/src/main/java/org/molgenis/data/importer/ImportWriter.java","position":52,"original_position":52,"commit_id":"0acf48240426ab2726608dfddea897bdf0d5aea9","original_commit_id":"0acf48240426ab2726608dfddea897bdf0d5aea9","user":{"login":"fdlk","id":1523838,"avatar_url":"https://avatars.githubusercontent.com/u/1523838?v=3","gravatar_id":"","url":"https://api.github.com/users/fdlk","html_url":"https://github.com/fdlk","followers_url":"https://api.github.com/users/fdlk/followers","following_url":"https://api.github.com/users/fdlk/following{/other_user}","gists_url":"https://api.github.com/users/fdlk/gists{/gist_id}","starred_url":"https://api.github.com/users/fdlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdlk/subscriptions","organizations_url":"https://api.github.com/users/fdlk/orgs","repos_url":"https://api.github.com/users/fdlk/repos","events_url":"https://api.github.com/users/fdlk/events{/privacy}","received_events_url":"https://api.github.com/users/fdlk/received_events","type":"User","site_admin":false},"body":"formatting :)","created_at":"2015-03-25T08:02:08Z","updated_at":"2015-03-25T08:02:08Z","html_url":"https://github.com/molgenis/molgenis/pull/2689#discussion_r27100609","pull_request_url":"https://api.github.com/repos/molgenis/molgenis/pulls/2689","_links":{"self":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/comments/27100609"},"html":{"href":"https://github.com/molgenis/molgenis/pull/2689#discussion_r27100609"},"pull_request":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/2689"}}},"pull_request":{"url":"https://api.github.com/repos/molgenis/molgenis/pulls/2689","id":31821915,"html_url":"https://github.com/molgenis/molgenis/pull/2689","diff_url":"https://github.com/molgenis/molgenis/pull/2689.diff","patch_url":"https://github.com/molgenis/molgenis/pull/2689.patch","issue_url":"https://api.github.com/repos/molgenis/molgenis/issues/2689","number":2689,"state":"open","locked":false,"title":"Fix: inconsistent encoding in the REST controller #2687  and Uploading Entity with self-reference (xref) fails #2637","user":{"login":"jjettenn","id":5586255,"avatar_url":"https://avatars.githubusercontent.com/u/5586255?v=3","gravatar_id":"","url":"https://api.github.com/users/jjettenn","html_url":"https://github.com/jjettenn","followers_url":"https://api.github.com/users/jjettenn/followers","following_url":"https://api.github.com/users/jjettenn/following{/other_user}","gists_url":"https://api.github.com/users/jjettenn/gists{/gist_id}","starred_url":"https://api.github.com/users/jjettenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjettenn/subscriptions","organizations_url":"https://api.github.com/users/jjettenn/orgs","repos_url":"https://api.github.com/users/jjettenn/repos","events_url":"https://api.github.com/users/jjettenn/events{/privacy}","received_events_url":"https://api.github.com/users/jjettenn/received_events","type":"User","site_admin":false},"body":"Fixing encoding.\r\nEncoding was not consistent for the href attribute.\r\nThe encoding util for encoding the href attribute is changed because it\r\nwas wrong. Now using UriUtils of spring instead of the previus\r\nURLEncoder that was using application/x-www-form-urlencoded instead of\r\nRFC 3986\r\n","created_at":"2015-03-24T12:37:44Z","updated_at":"2015-03-25T08:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88d73d2dba0161a4b5d5e39c7eff983c4e522c4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/molgenis/molgenis/pulls/2689/commits","review_comments_url":"https://api.github.com/repos/molgenis/molgenis/pulls/2689/comments","review_comment_url":"https://api.github.com/repos/molgenis/molgenis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/molgenis/molgenis/issues/2689/comments","statuses_url":"https://api.github.com/repos/molgenis/molgenis/statuses/0acf48240426ab2726608dfddea897bdf0d5aea9","head":{"label":"jjettenn:master","ref":"master","sha":"0acf48240426ab2726608dfddea897bdf0d5aea9","user":{"login":"jjettenn","id":5586255,"avatar_url":"https://avatars.githubusercontent.com/u/5586255?v=3","gravatar_id":"","url":"https://api.github.com/users/jjettenn","html_url":"https://github.com/jjettenn","followers_url":"https://api.github.com/users/jjettenn/followers","following_url":"https://api.github.com/users/jjettenn/following{/other_user}","gists_url":"https://api.github.com/users/jjettenn/gists{/gist_id}","starred_url":"https://api.github.com/users/jjettenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjettenn/subscriptions","organizations_url":"https://api.github.com/users/jjettenn/orgs","repos_url":"https://api.github.com/users/jjettenn/repos","events_url":"https://api.github.com/users/jjettenn/events{/privacy}","received_events_url":"https://api.github.com/users/jjettenn/received_events","type":"User","site_admin":false},"repo":{"id":13272521,"name":"molgenis","full_name":"jjettenn/molgenis","owner":{"login":"jjettenn","id":5586255,"avatar_url":"https://avatars.githubusercontent.com/u/5586255?v=3","gravatar_id":"","url":"https://api.github.com/users/jjettenn","html_url":"https://github.com/jjettenn","followers_url":"https://api.github.com/users/jjettenn/followers","following_url":"https://api.github.com/users/jjettenn/following{/other_user}","gists_url":"https://api.github.com/users/jjettenn/gists{/gist_id}","starred_url":"https://api.github.com/users/jjettenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjettenn/subscriptions","organizations_url":"https://api.github.com/users/jjettenn/orgs","repos_url":"https://api.github.com/users/jjettenn/repos","events_url":"https://api.github.com/users/jjettenn/events{/privacy}","received_events_url":"https://api.github.com/users/jjettenn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jjettenn/molgenis","description":"MOLGENIS is an collaborative open source project on a mission to generate great software infrastructure for life science research. ","fork":true,"url":"https://api.github.com/repos/jjettenn/molgenis","forks_url":"https://api.github.com/repos/jjettenn/molgenis/forks","keys_url":"https://api.github.com/repos/jjettenn/molgenis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjettenn/molgenis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjettenn/molgenis/teams","hooks_url":"https://api.github.com/repos/jjettenn/molgenis/hooks","issue_events_url":"https://api.github.com/repos/jjettenn/molgenis/issues/events{/number}","events_url":"https://api.github.com/repos/jjettenn/molgenis/events","assignees_url":"https://api.github.com/repos/jjettenn/molgenis/assignees{/user}","branches_url":"https://api.github.com/repos/jjettenn/molgenis/branches{/branch}","tags_url":"https://api.github.com/repos/jjettenn/molgenis/tags","blobs_url":"https://api.github.com/repos/jjettenn/molgenis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjettenn/molgenis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjettenn/molgenis/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjettenn/molgenis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjettenn/molgenis/statuses/{sha}","languages_url":"https://api.github.com/repos/jjettenn/molgenis/languages","stargazers_url":"https://api.github.com/repos/jjettenn/molgenis/stargazers","contributors_url":"https://api.github.com/repos/jjettenn/molgenis/contributors","subscribers_url":"https://api.github.com/repos/jjettenn/molgenis/subscribers","subscription_url":"https://api.github.com/repos/jjettenn/molgenis/subscription","commits_url":"https://api.github.com/repos/jjettenn/molgenis/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjettenn/molgenis/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjettenn/molgenis/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjettenn/molgenis/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjettenn/molgenis/contents/{+path}","compare_url":"https://api.github.com/repos/jjettenn/molgenis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjettenn/molgenis/merges","archive_url":"https://api.github.com/repos/jjettenn/molgenis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjettenn/molgenis/downloads","issues_url":"https://api.github.com/repos/jjettenn/molgenis/issues{/number}","pulls_url":"https://api.github.com/repos/jjettenn/molgenis/pulls{/number}","milestones_url":"https://api.github.com/repos/jjettenn/molgenis/milestones{/number}","notifications_url":"https://api.github.com/repos/jjettenn/molgenis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjettenn/molgenis/labels{/name}","releases_url":"https://api.github.com/repos/jjettenn/molgenis/releases{/id}","created_at":"2013-10-02T14:00:43Z","updated_at":"2015-03-24T23:03:49Z","pushed_at":"2015-03-24T23:03:46Z","git_url":"git://github.com/jjettenn/molgenis.git","ssh_url":"git@github.com:jjettenn/molgenis.git","clone_url":"https://github.com/jjettenn/molgenis.git","svn_url":"https://github.com/jjettenn/molgenis","homepage":"","size":68916,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"master"}},"base":{"label":"molgenis:master","ref":"master","sha":"fe03caa99ff7dc9bedbf0b1885597fc6c8edd958","user":{"login":"molgenis","id":1688158,"avatar_url":"https://avatars.githubusercontent.com/u/1688158?v=3","gravatar_id":"","url":"https://api.github.com/users/molgenis","html_url":"https://github.com/molgenis","followers_url":"https://api.github.com/users/molgenis/followers","following_url":"https://api.github.com/users/molgenis/following{/other_user}","gists_url":"https://api.github.com/users/molgenis/gists{/gist_id}","starred_url":"https://api.github.com/users/molgenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molgenis/subscriptions","organizations_url":"https://api.github.com/users/molgenis/orgs","repos_url":"https://api.github.com/users/molgenis/repos","events_url":"https://api.github.com/users/molgenis/events{/privacy}","received_events_url":"https://api.github.com/users/molgenis/received_events","type":"Organization","site_admin":false},"repo":{"id":8010626,"name":"molgenis","full_name":"molgenis/molgenis","owner":{"login":"molgenis","id":1688158,"avatar_url":"https://avatars.githubusercontent.com/u/1688158?v=3","gravatar_id":"","url":"https://api.github.com/users/molgenis","html_url":"https://github.com/molgenis","followers_url":"https://api.github.com/users/molgenis/followers","following_url":"https://api.github.com/users/molgenis/following{/other_user}","gists_url":"https://api.github.com/users/molgenis/gists{/gist_id}","starred_url":"https://api.github.com/users/molgenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molgenis/subscriptions","organizations_url":"https://api.github.com/users/molgenis/orgs","repos_url":"https://api.github.com/users/molgenis/repos","events_url":"https://api.github.com/users/molgenis/events{/privacy}","received_events_url":"https://api.github.com/users/molgenis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/molgenis/molgenis","description":"MOLGENIS is an collaborative open source project on a mission to generate great software infrastructure for life science research. ","fork":false,"url":"https://api.github.com/repos/molgenis/molgenis","forks_url":"https://api.github.com/repos/molgenis/molgenis/forks","keys_url":"https://api.github.com/repos/molgenis/molgenis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/molgenis/molgenis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/molgenis/molgenis/teams","hooks_url":"https://api.github.com/repos/molgenis/molgenis/hooks","issue_events_url":"https://api.github.com/repos/molgenis/molgenis/issues/events{/number}","events_url":"https://api.github.com/repos/molgenis/molgenis/events","assignees_url":"https://api.github.com/repos/molgenis/molgenis/assignees{/user}","branches_url":"https://api.github.com/repos/molgenis/molgenis/branches{/branch}","tags_url":"https://api.github.com/repos/molgenis/molgenis/tags","blobs_url":"https://api.github.com/repos/molgenis/molgenis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/molgenis/molgenis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/molgenis/molgenis/git/refs{/sha}","trees_url":"https://api.github.com/repos/molgenis/molgenis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/molgenis/molgenis/statuses/{sha}","languages_url":"https://api.github.com/repos/molgenis/molgenis/languages","stargazers_url":"https://api.github.com/repos/molgenis/molgenis/stargazers","contributors_url":"https://api.github.com/repos/molgenis/molgenis/contributors","subscribers_url":"https://api.github.com/repos/molgenis/molgenis/subscribers","subscription_url":"https://api.github.com/repos/molgenis/molgenis/subscription","commits_url":"https://api.github.com/repos/molgenis/molgenis/commits{/sha}","git_commits_url":"https://api.github.com/repos/molgenis/molgenis/git/commits{/sha}","comments_url":"https://api.github.com/repos/molgenis/molgenis/comments{/number}","issue_comment_url":"https://api.github.com/repos/molgenis/molgenis/issues/comments{/number}","contents_url":"https://api.github.com/repos/molgenis/molgenis/contents/{+path}","compare_url":"https://api.github.com/repos/molgenis/molgenis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/molgenis/molgenis/merges","archive_url":"https://api.github.com/repos/molgenis/molgenis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/molgenis/molgenis/downloads","issues_url":"https://api.github.com/repos/molgenis/molgenis/issues{/number}","pulls_url":"https://api.github.com/repos/molgenis/molgenis/pulls{/number}","milestones_url":"https://api.github.com/repos/molgenis/molgenis/milestones{/number}","notifications_url":"https://api.github.com/repos/molgenis/molgenis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/molgenis/molgenis/labels{/name}","releases_url":"https://api.github.com/repos/molgenis/molgenis/releases{/id}","created_at":"2013-02-04T16:02:36Z","updated_at":"2015-03-24T21:47:50Z","pushed_at":"2015-03-24T23:03:47Z","git_url":"git://github.com/molgenis/molgenis.git","ssh_url":"git@github.com:molgenis/molgenis.git","clone_url":"https://github.com/molgenis/molgenis.git","svn_url":"https://github.com/molgenis/molgenis","homepage":"","size":80396,"stargazers_count":14,"watchers_count":14,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":137,"forks":39,"open_issues":137,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/2689"},"html":{"href":"https://github.com/molgenis/molgenis/pull/2689"},"issue":{"href":"https://api.github.com/repos/molgenis/molgenis/issues/2689"},"comments":{"href":"https://api.github.com/repos/molgenis/molgenis/issues/2689/comments"},"review_comments":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/2689/comments"},"review_comment":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/2689/commits"},"statuses":{"href":"https://api.github.com/repos/molgenis/molgenis/statuses/0acf48240426ab2726608dfddea897bdf0d5aea9"}}}}