{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/rdf4j/pulls/comments/74354809","id":74354809,"diff_hunk":"@@ -482,6 +516,62 @@ public void run() {\n \t\tthreadPool.shutdownNow();\n \t}\n \n+\tprivate Set<Namespace> getNamespaces(String location)\n+\t\tthrows Exception\n+\t{\n+\t\tURL url = new URL(location);\n+\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\n+\t\ttry {\n+\t\t\tconn.setRequestProperty(\"Accept\", \"text/csv; charset=utf-8\");\n+\t\t\tconn.connect();\n+\n+\t\t\tInputStream connIs = conn.getInputStream();\n+\t\t\ttry {\n+\t\t\t\tint responseCode = conn.getResponseCode();\n+\t\t\t\tif (responseCode != HttpURLConnection.HTTP_OK) {\n+\t\t\t\t\tString response = \"location \" + location + \" responded: \" + conn.getResponseMessage()\n+\t\t\t\t\t\t\t+ \" (\" + responseCode + \")\";\n+\t\t\t\t\tfail(response);\n+\t\t\t\t}\n+\n+\t\t\t\tString responseText = IOUtil.readString(connIs);\n+\t\t\t\tString[] rows = responseText.split(\"\\\\r?\\\\n\");","path":"compliance/http/src/test/java/org/eclipse/rdf4j/http/server/ProtocolTest.java","position":95,"original_position":95,"commit_id":"bece77c14637b16f552861b7008756dcff58604a","original_commit_id":"bece77c14637b16f552861b7008756dcff58604a","user":{"login":"ansell","id":82365,"avatar_url":"https://avatars.githubusercontent.com/u/82365?v=3","gravatar_id":"","url":"https://api.github.com/users/ansell","html_url":"https://github.com/ansell","followers_url":"https://api.github.com/users/ansell/followers","following_url":"https://api.github.com/users/ansell/following{/other_user}","gists_url":"https://api.github.com/users/ansell/gists{/gist_id}","starred_url":"https://api.github.com/users/ansell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansell/subscriptions","organizations_url":"https://api.github.com/users/ansell/orgs","repos_url":"https://api.github.com/users/ansell/repos","events_url":"https://api.github.com/users/ansell/events{/privacy}","received_events_url":"https://api.github.com/users/ansell/received_events","type":"User","site_admin":false},"body":"Looking at it further using \r\n\r\n```\r\nmvn dependency:tree\r\n```\r\n\r\nYou may need to add a runtime/test dependency to opencsv and/or queryresultio-text to get my suggestion to work as http-compliance only seems to link to queryresultio-binary, queryresultio-sparqljson and queryresultio-sparqlxml right now.","created_at":"2016-08-11T00:18:18Z","updated_at":"2016-08-11T00:18:18Z","html_url":"https://github.com/eclipse/rdf4j/pull/285#discussion_r74354809","pull_request_url":"https://api.github.com/repos/eclipse/rdf4j/pulls/285","_links":{"self":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/comments/74354809"},"html":{"href":"https://github.com/eclipse/rdf4j/pull/285#discussion_r74354809"},"pull_request":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/rdf4j/pulls/285","id":80885083,"html_url":"https://github.com/eclipse/rdf4j/pull/285","diff_url":"https://github.com/eclipse/rdf4j/pull/285.diff","patch_url":"https://github.com/eclipse/rdf4j/pull/285.patch","issue_url":"https://api.github.com/repos/eclipse/rdf4j/issues/285","number":285,"state":"open","locked":false,"title":"issue #262: add a test and fix the issue in the HTTP server with empt…","user":{"login":"manuelfiorelli","id":20649935,"avatar_url":"https://avatars.githubusercontent.com/u/20649935?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelfiorelli","html_url":"https://github.com/manuelfiorelli","followers_url":"https://api.github.com/users/manuelfiorelli/followers","following_url":"https://api.github.com/users/manuelfiorelli/following{/other_user}","gists_url":"https://api.github.com/users/manuelfiorelli/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelfiorelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelfiorelli/subscriptions","organizations_url":"https://api.github.com/users/manuelfiorelli/orgs","repos_url":"https://api.github.com/users/manuelfiorelli/repos","events_url":"https://api.github.com/users/manuelfiorelli/events{/privacy}","received_events_url":"https://api.github.com/users/manuelfiorelli/received_events","type":"User","site_admin":false},"body":"This PR addresses GitHub issue: #262 \r\n\r\nBriefly describe the changes proposed in this PR:\r\n\r\n- Use of String.lastIndexOf to find the index of the last slash \"/\" in the request path, in order to determine where the prefix starts\r\n\r\nAs the original code, the proposed modification accepts URLs that are not strictly conforming to the specified request format: e.g. any number of intermediate components are silently ignored.\r\n\r\nMake sure you've followed the [Contributor Guidelines](https://github.com/eclipse/rdf4j/blob/master/.github/CONTRIBUTING.md). In particular (please tick to indicate you've taken care of it):\r\n\r\n- [x] RDF4J code formatting has been applied\r\n- [x] tests are included\r\n- [x] all tests succeed (in fact, because of a problem with locale-dependent tests, I was not able to run all tests, but I've executed the tests for the affected module)","created_at":"2016-08-10T23:29:51Z","updated_at":"2016-08-11T00:18:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72bd679501fe92abdac68800d060c22b5185ed1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/rdf4j/pulls/285/commits","review_comments_url":"https://api.github.com/repos/eclipse/rdf4j/pulls/285/comments","review_comment_url":"https://api.github.com/repos/eclipse/rdf4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/rdf4j/issues/285/comments","statuses_url":"https://api.github.com/repos/eclipse/rdf4j/statuses/bece77c14637b16f552861b7008756dcff58604a","head":{"label":"manuelfiorelli:issues/#262-workbench-empty-prefix","ref":"issues/#262-workbench-empty-prefix","sha":"bece77c14637b16f552861b7008756dcff58604a","user":{"login":"manuelfiorelli","id":20649935,"avatar_url":"https://avatars.githubusercontent.com/u/20649935?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelfiorelli","html_url":"https://github.com/manuelfiorelli","followers_url":"https://api.github.com/users/manuelfiorelli/followers","following_url":"https://api.github.com/users/manuelfiorelli/following{/other_user}","gists_url":"https://api.github.com/users/manuelfiorelli/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelfiorelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelfiorelli/subscriptions","organizations_url":"https://api.github.com/users/manuelfiorelli/orgs","repos_url":"https://api.github.com/users/manuelfiorelli/repos","events_url":"https://api.github.com/users/manuelfiorelli/events{/privacy}","received_events_url":"https://api.github.com/users/manuelfiorelli/received_events","type":"User","site_admin":false},"repo":{"id":64342463,"name":"rdf4j","full_name":"manuelfiorelli/rdf4j","owner":{"login":"manuelfiorelli","id":20649935,"avatar_url":"https://avatars.githubusercontent.com/u/20649935?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelfiorelli","html_url":"https://github.com/manuelfiorelli","followers_url":"https://api.github.com/users/manuelfiorelli/followers","following_url":"https://api.github.com/users/manuelfiorelli/following{/other_user}","gists_url":"https://api.github.com/users/manuelfiorelli/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelfiorelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelfiorelli/subscriptions","organizations_url":"https://api.github.com/users/manuelfiorelli/orgs","repos_url":"https://api.github.com/users/manuelfiorelli/repos","events_url":"https://api.github.com/users/manuelfiorelli/events{/privacy}","received_events_url":"https://api.github.com/users/manuelfiorelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manuelfiorelli/rdf4j","description":"RDF4J Project","fork":true,"url":"https://api.github.com/repos/manuelfiorelli/rdf4j","forks_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/forks","keys_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/teams","hooks_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/hooks","issue_events_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/issues/events{/number}","events_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/events","assignees_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/assignees{/user}","branches_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/branches{/branch}","tags_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/tags","blobs_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/statuses/{sha}","languages_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/languages","stargazers_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/stargazers","contributors_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/contributors","subscribers_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/subscribers","subscription_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/subscription","commits_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/contents/{+path}","compare_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/merges","archive_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/downloads","issues_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/issues{/number}","pulls_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/pulls{/number}","milestones_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/milestones{/number}","notifications_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/labels{/name}","releases_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/releases{/id}","deployments_url":"https://api.github.com/repos/manuelfiorelli/rdf4j/deployments","created_at":"2016-07-27T21:17:56Z","updated_at":"2016-07-27T21:18:06Z","pushed_at":"2016-08-10T23:06:12Z","git_url":"git://github.com/manuelfiorelli/rdf4j.git","ssh_url":"git@github.com:manuelfiorelli/rdf4j.git","clone_url":"https://github.com/manuelfiorelli/rdf4j.git","svn_url":"https://github.com/manuelfiorelli/rdf4j","homepage":null,"size":9161,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"eclipse:releases/2.0.x","ref":"releases/2.0.x","sha":"c5830dd1647e0728b5e139aa1f7479fc46862c2f","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":49670957,"name":"rdf4j","full_name":"eclipse/rdf4j","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/rdf4j","description":"RDF4J Project","fork":false,"url":"https://api.github.com/repos/eclipse/rdf4j","forks_url":"https://api.github.com/repos/eclipse/rdf4j/forks","keys_url":"https://api.github.com/repos/eclipse/rdf4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/rdf4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/rdf4j/teams","hooks_url":"https://api.github.com/repos/eclipse/rdf4j/hooks","issue_events_url":"https://api.github.com/repos/eclipse/rdf4j/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/rdf4j/events","assignees_url":"https://api.github.com/repos/eclipse/rdf4j/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/rdf4j/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/rdf4j/tags","blobs_url":"https://api.github.com/repos/eclipse/rdf4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/rdf4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/rdf4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/rdf4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/rdf4j/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/rdf4j/languages","stargazers_url":"https://api.github.com/repos/eclipse/rdf4j/stargazers","contributors_url":"https://api.github.com/repos/eclipse/rdf4j/contributors","subscribers_url":"https://api.github.com/repos/eclipse/rdf4j/subscribers","subscription_url":"https://api.github.com/repos/eclipse/rdf4j/subscription","commits_url":"https://api.github.com/repos/eclipse/rdf4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/rdf4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/rdf4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/rdf4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/rdf4j/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/rdf4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/rdf4j/merges","archive_url":"https://api.github.com/repos/eclipse/rdf4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/rdf4j/downloads","issues_url":"https://api.github.com/repos/eclipse/rdf4j/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/rdf4j/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/rdf4j/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/rdf4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/rdf4j/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/rdf4j/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/rdf4j/deployments","created_at":"2016-01-14T19:47:32Z","updated_at":"2016-07-21T19:18:20Z","pushed_at":"2016-08-10T23:29:51Z","git_url":"git://github.com/eclipse/rdf4j.git","ssh_url":"git@github.com:eclipse/rdf4j.git","clone_url":"https://github.com/eclipse/rdf4j.git","svn_url":"https://github.com/eclipse/rdf4j","homepage":null,"size":9272,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":64,"forks":12,"open_issues":64,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/285"},"html":{"href":"https://github.com/eclipse/rdf4j/pull/285"},"issue":{"href":"https://api.github.com/repos/eclipse/rdf4j/issues/285"},"comments":{"href":"https://api.github.com/repos/eclipse/rdf4j/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/rdf4j/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/rdf4j/statuses/bece77c14637b16f552861b7008756dcff58604a"}}}}
{"actor":{"display_login":"ansell"}}