{"action":"created","issue":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/499","labels_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/499/comments","events_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/499/events","html_url":"https://github.com/openlink/virtuoso-opensource/issues/499","id":118059738,"number":499,"title":"Invalid response when query contains special character #0B","user":{"login":"jakubklimek","id":718827,"avatar_url":"https://avatars.githubusercontent.com/u/718827?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubklimek","html_url":"https://github.com/jakubklimek","followers_url":"https://api.github.com/users/jakubklimek/followers","following_url":"https://api.github.com/users/jakubklimek/following{/other_user}","gists_url":"https://api.github.com/users/jakubklimek/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubklimek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubklimek/subscriptions","organizations_url":"https://api.github.com/users/jakubklimek/orgs","repos_url":"https://api.github.com/users/jakubklimek/repos","events_url":"https://api.github.com/users/jakubklimek/events{/privacy}","received_events_url":"https://api.github.com/users/jakubklimek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T15:09:54Z","updated_at":"2015-11-21T14:55:39Z","closed_at":null,"body":"This (invalid) query\r\n```\r\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\r\n\r\nSELECT DISTINCT ?g\r\nWHERE \r\n{\r\nGRAPH ?g {?s a skos:Concept . }\r\n}\r\nORDER BY ?g\u000B\r\nLIMIT 10\r\n```\r\nWhere the special character is #0B (according to Notepad++ - Github reencodes it) causes Virtuoso SPARQL endpoint to do \"invalid response\" according to Chrome.\r\n\r\nThis happens with any query that contains this character. It got to the query when copy&pasting from MS PowerPoint (attached), where it can be created by pressing shift+enter for a newline in the same paragraph.\r\n[sparql-bug.pptx](https://github.com/openlink/virtuoso-opensource/files/40168/sparql-bug.pptx)\r\n\r\nI would expect a standard error message.\r\n"},"comment":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/comments/158649826","html_url":"https://github.com/openlink/virtuoso-opensource/issues/499#issuecomment-158649826","issue_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/499","id":158649826,"user":{"login":"HughWilliams","id":4868081,"avatar_url":"https://avatars.githubusercontent.com/u/4868081?v=3","gravatar_id":"","url":"https://api.github.com/users/HughWilliams","html_url":"https://github.com/HughWilliams","followers_url":"https://api.github.com/users/HughWilliams/followers","following_url":"https://api.github.com/users/HughWilliams/following{/other_user}","gists_url":"https://api.github.com/users/HughWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/HughWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HughWilliams/subscriptions","organizations_url":"https://api.github.com/users/HughWilliams/orgs","repos_url":"https://api.github.com/users/HughWilliams/repos","events_url":"https://api.github.com/users/HughWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/HughWilliams/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T14:55:39Z","updated_at":"2015-11-21T14:55:39Z","body":"You do get the database error if the Virtuoso Authentication Layer (VAL) is installed although that is only available in the commercial product, see:\r\n\r\n   http://uriburner.com/sparql?default-graph-uri=&qtxt=PREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0A%0D%0ASELECT+DISTINCT+%3Fg%0D%0AWHERE+%0D%0A%7B%0D%0AGRAPH+%3Fg+%7B%3Fs+a+skos%3AConcept+.+%7D%0D%0A%7D%0D%0AORDER+BY+%3Fg%0B%0D%0ALIMIT+10%0D%0A&should-sponge=&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000000\r\n\r\nI note some other forms like the Jena Fuseki one also give and invalid response error, see:\r\n\r\n   http://sparql.vivo.ufl.edu/sparql.html "}}