{"action":"opened","issue":{"url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/107","labels_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/107/comments","events_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/107/events","html_url":"https://github.com/RaiMan/SikuliX-2014/issues/107","id":58746150,"number":107,"title":"URL SetBundlePath Issue","user":{"login":"wakeyowl","id":1244469,"avatar_url":"https://avatars.githubusercontent.com/u/1244469?v=3","gravatar_id":"","url":"https://api.github.com/users/wakeyowl","html_url":"https://github.com/wakeyowl","followers_url":"https://api.github.com/users/wakeyowl/followers","following_url":"https://api.github.com/users/wakeyowl/following{/other_user}","gists_url":"https://api.github.com/users/wakeyowl/gists{/gist_id}","starred_url":"https://api.github.com/users/wakeyowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakeyowl/subscriptions","organizations_url":"https://api.github.com/users/wakeyowl/orgs","repos_url":"https://api.github.com/users/wakeyowl/repos","events_url":"https://api.github.com/users/wakeyowl/events{/privacy}","received_events_url":"https://api.github.com/users/wakeyowl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T14:33:24Z","updated_at":"2015-02-24T14:33:24Z","closed_at":null,"body":"Hi RaiMan,\r\n\r\nOn the updates you made for me to alow a URL Path we are encountering an issue setting either path now on windows machines.\r\n\r\nWe have 2 seprerate issues initially when we are rying to set the bundle path with url\r\n\r\nImagePath.setBundlePath(\"http://google.co.uk/\");\r\n\r\nreturns the following:\r\n[error] ImagePath: add: class /C:/Users/benk/workspace - new/whgtf-demo-test/http:/google.co.uk not found on classpath.\r\n[error] ImagePath: setBundlePath: invalid BundlePath: http://google.co.uk/ \r\nusing working folder: C:\\Users\\benk\\workspace - new\\whgtf-demo-test\r\n\r\nI assume we are doing this correctly?\r\n\r\nAlso the updates seem to have broken the filepath of a system folder when it contains spaces and/or special chars. i.e. C:/Users/benk/workspace - new/whgtf-demo-test\r\n\r\nImagePath.setBundlePath(System.getProperty(\"user.dir\"));\r\n\r\nThe above now returns (and loops quite a bit 471 times infact :-) : \r\n[error] ImagePath: setBundlePath: invalid BundlePath: C:\\Users\\benk\\workspace - new\\whgtf-demo-test \r\nusing working folder: C:\\Users\\benk\\workspace - new\\whgtf-demo-test\r\n\r\nHaving debugged it, compairing to 1.1.0 version this is the code that causes the exception within ImagePath.java\r\n\t\tpublic String getPath() {\r\n\t\t\tif (pathURL == null) {\r\n\t\t\t\treturn \"-- empty --\";\r\n\t\t\t}\r\n\t\t\tif (isFile())\r\n\t\t\t\ttry {\r\n\t\t\t\t\treturn pathURL.toURI().getPath();\r\n\t\t\t\t} catch (URISyntaxException ex) {}\r\n\t\t\treturn pathURL.toExternalForm();\r\n\t\t}\r\n\r\nas a workaround we changed the code to read \"return pathURL.getPath()\" as per the earlier version.\r\n"}}