{"action":"created","comment":{"url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/comments/225869070","pull_request_review_id":165559897,"id":225869070,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTg2OTA3MA==","diff_hunk":"@@ -144,29 +146,39 @@ private Field recurseRef(String index, String iType, Deque<String> path, String\n     if (path.size() > MIN_DEPTH && String.join(\".\", path).length() > index.length()) {\n       return null;\n     }\n-    if (!refVal.startsWith(\"file\")) {\n-      throw new IOException(\"$ref: Cannot resolve path \" + refVal);\n+    String uPath;\n+    try {\n+      URI u = new URI(refVal);\n+      if (!\"file\".equals(u.getScheme())) {\n+        return null;\n+      }\n+      uPath = u.getPath();\n+    } catch (URISyntaxException ex) {\n+      throw new IOException(ex.getLocalizedMessage());\n+    }\n+    if (uPath == null) {\n+      throw new IOException(\"$ref: no path component in \" + refVal);\n     }\n-    refVal = refVal.replace(File.separator, \"/\");\n+    uPath = uPath.replace(File.separator, \"/\");\n     int idx = -1;\n     if (idx == -1) {","path":"src/main/java/org/z3950/zing/cql/cql2pgjson/Schema.java","position":31,"original_position":31,"commit_id":"92fa26c57747a36d5084799b3ebd47191f446484","original_commit_id":"92fa26c57747a36d5084799b3ebd47191f446484","user":{"login":"julianladisch","id":533612,"node_id":"MDQ6VXNlcjUzMzYxMg==","avatar_url":"https://avatars2.githubusercontent.com/u/533612?v=4","gravatar_id":"","url":"https://api.github.com/users/julianladisch","html_url":"https://github.com/julianladisch","followers_url":"https://api.github.com/users/julianladisch/followers","following_url":"https://api.github.com/users/julianladisch/following{/other_user}","gists_url":"https://api.github.com/users/julianladisch/gists{/gist_id}","starred_url":"https://api.github.com/users/julianladisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianladisch/subscriptions","organizations_url":"https://api.github.com/users/julianladisch/orgs","repos_url":"https://api.github.com/users/julianladisch/repos","events_url":"https://api.github.com/users/julianladisch/events{/privacy}","received_events_url":"https://api.github.com/users/julianladisch/received_events","type":"User","site_admin":false},"body":"This is always true, see assignment in line before.","created_at":"2018-10-17T10:32:32Z","updated_at":"2018-10-17T10:32:32Z","html_url":"https://github.com/folio-org/cql2pgjson-java/pull/85#discussion_r225869070","pull_request_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/comments/225869070"},"html":{"href":"https://github.com/folio-org/cql2pgjson-java/pull/85#discussion_r225869070"},"pull_request":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85","id":223301490,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMzAxNDkw","html_url":"https://github.com/folio-org/cql2pgjson-java/pull/85","diff_url":"https://github.com/folio-org/cql2pgjson-java/pull/85.diff","patch_url":"https://github.com/folio-org/cql2pgjson-java/pull/85.patch","issue_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/85","number":85,"state":"open","locked":false,"title":"Fix Probably incorrect handling of ref CQLPG-68","user":{"login":"adamdickmeiss","id":8536543,"node_id":"MDQ6VXNlcjg1MzY1NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/8536543?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdickmeiss","html_url":"https://github.com/adamdickmeiss","followers_url":"https://api.github.com/users/adamdickmeiss/followers","following_url":"https://api.github.com/users/adamdickmeiss/following{/other_user}","gists_url":"https://api.github.com/users/adamdickmeiss/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdickmeiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdickmeiss/subscriptions","organizations_url":"https://api.github.com/users/adamdickmeiss/orgs","repos_url":"https://api.github.com/users/adamdickmeiss/repos","events_url":"https://api.github.com/users/adamdickmeiss/events{/privacy}","received_events_url":"https://api.github.com/users/adamdickmeiss/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-16T15:43:48Z","updated_at":"2018-10-17T10:32:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"561c04681960473f372b55c1592624cb45166dd3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85/commits","review_comments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85/comments","review_comment_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/85/comments","statuses_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/statuses/92fa26c57747a36d5084799b3ebd47191f446484","head":{"label":"folio-org:cqlpg-68-fix-incorrect-ref-handling","ref":"cqlpg-68-fix-incorrect-ref-handling","sha":"92fa26c57747a36d5084799b3ebd47191f446484","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":76249786,"node_id":"MDEwOlJlcG9zaXRvcnk3NjI0OTc4Ng==","name":"cql2pgjson-java","full_name":"folio-org/cql2pgjson-java","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/cql2pgjson-java","description":"CQL to PostgreSQL JSON converter","fork":false,"url":"https://api.github.com/repos/folio-org/cql2pgjson-java","forks_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/forks","keys_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/teams","hooks_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/hooks","issue_events_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/events","assignees_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/tags","blobs_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/languages","stargazers_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/stargazers","contributors_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/contributors","subscribers_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/subscribers","subscription_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/subscription","commits_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/merges","archive_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/downloads","issues_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/deployments","created_at":"2016-12-12T11:19:35Z","updated_at":"2018-10-17T10:21:40Z","pushed_at":"2018-10-17T10:21:42Z","git_url":"git://github.com/folio-org/cql2pgjson-java.git","ssh_url":"git@github.com:folio-org/cql2pgjson-java.git","clone_url":"https://github.com/folio-org/cql2pgjson-java.git","svn_url":"https://github.com/folio-org/cql2pgjson-java","homepage":"http://www.indexdata.com/cql-java","size":361,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"folio-org:master","ref":"master","sha":"6930cc66091c89a802221a5d783e4113ad52e5d6","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":76249786,"node_id":"MDEwOlJlcG9zaXRvcnk3NjI0OTc4Ng==","name":"cql2pgjson-java","full_name":"folio-org/cql2pgjson-java","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/cql2pgjson-java","description":"CQL to PostgreSQL JSON converter","fork":false,"url":"https://api.github.com/repos/folio-org/cql2pgjson-java","forks_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/forks","keys_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/teams","hooks_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/hooks","issue_events_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/events","assignees_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/tags","blobs_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/languages","stargazers_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/stargazers","contributors_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/contributors","subscribers_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/subscribers","subscription_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/subscription","commits_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/merges","archive_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/downloads","issues_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/cql2pgjson-java/deployments","created_at":"2016-12-12T11:19:35Z","updated_at":"2018-10-17T10:21:40Z","pushed_at":"2018-10-17T10:21:42Z","git_url":"git://github.com/folio-org/cql2pgjson-java.git","ssh_url":"git@github.com:folio-org/cql2pgjson-java.git","clone_url":"https://github.com/folio-org/cql2pgjson-java.git","svn_url":"https://github.com/folio-org/cql2pgjson-java","homepage":"http://www.indexdata.com/cql-java","size":361,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85"},"html":{"href":"https://github.com/folio-org/cql2pgjson-java/pull/85"},"issue":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/85"},"comments":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/folio-org/cql2pgjson-java/statuses/92fa26c57747a36d5084799b3ebd47191f446484"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"julianladisch"}}