{"action":"created","issue":{"url":"https://api.github.com/repos/intellimate/Izou/issues/30","labels_url":"https://api.github.com/repos/intellimate/Izou/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/intellimate/Izou/issues/30/comments","events_url":"https://api.github.com/repos/intellimate/Izou/issues/30/events","html_url":"https://github.com/intellimate/Izou/issues/30","id":73730598,"number":30,"title":"Exception in the security manager-Request hotfix","user":{"login":"LeanderK","id":2179853,"avatar_url":"https://avatars.githubusercontent.com/u/2179853?v=3","gravatar_id":"","url":"https://api.github.com/users/LeanderK","html_url":"https://github.com/LeanderK","followers_url":"https://api.github.com/users/LeanderK/followers","following_url":"https://api.github.com/users/LeanderK/following{/other_user}","gists_url":"https://api.github.com/users/LeanderK/gists{/gist_id}","starred_url":"https://api.github.com/users/LeanderK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeanderK/subscriptions","organizations_url":"https://api.github.com/users/LeanderK/orgs","repos_url":"https://api.github.com/users/LeanderK/repos","events_url":"https://api.github.com/users/LeanderK/events{/privacy}","received_events_url":"https://api.github.com/users/LeanderK/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intellimate/Izou/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jundl77","id":3936594,"avatar_url":"https://avatars.githubusercontent.com/u/3936594?v=3","gravatar_id":"","url":"https://api.github.com/users/jundl77","html_url":"https://github.com/jundl77","followers_url":"https://api.github.com/users/jundl77/followers","following_url":"https://api.github.com/users/jundl77/following{/other_user}","gists_url":"https://api.github.com/users/jundl77/gists{/gist_id}","starred_url":"https://api.github.com/users/jundl77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jundl77/subscriptions","organizations_url":"https://api.github.com/users/jundl77/orgs","repos_url":"https://api.github.com/users/jundl77/repos","events_url":"https://api.github.com/users/jundl77/events{/privacy}","received_events_url":"https://api.github.com/users/jundl77/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/intellimate/Izou/milestones/3","html_url":"https://github.com/intellimate/Izou/milestones/1.5","labels_url":"https://api.github.com/repos/intellimate/Izou/milestones/3/labels","id":979091,"number":3,"title":"1.5","description":"This milestone contains improvements without breaking backward compability.","creator":{"login":"LeanderK","id":2179853,"avatar_url":"https://avatars.githubusercontent.com/u/2179853?v=3","gravatar_id":"","url":"https://api.github.com/users/LeanderK","html_url":"https://github.com/LeanderK","followers_url":"https://api.github.com/users/LeanderK/followers","following_url":"https://api.github.com/users/LeanderK/following{/other_user}","gists_url":"https://api.github.com/users/LeanderK/gists{/gist_id}","starred_url":"https://api.github.com/users/LeanderK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeanderK/subscriptions","organizations_url":"https://api.github.com/users/LeanderK/orgs","repos_url":"https://api.github.com/users/LeanderK/repos","events_url":"https://api.github.com/users/LeanderK/events{/privacy}","received_events_url":"https://api.github.com/users/LeanderK/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-02-13T22:52:00Z","updated_at":"2015-05-06T20:54:50Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-05-06T20:35:59Z","updated_at":"2015-05-06T21:04:01Z","closed_at":"2015-05-06T20:54:50Z","body":"this happens on the security implemented in the main branch.\r\n\r\nstacktrace:\r\n```java\r\nException in thread \"main\" java.lang.StringIndexOutOfBoundsException: String index out of range: -1\r\n\tat java.lang.String.substring(String.java:1954)\r\n\tat org.intellimate.izou.security.IzouSecurityManager.init(IzouSecurityManager.java:54)\r\n\tat org.intellimate.izou.security.IzouSecurityManager.<init>(IzouSecurityManager.java:48)\r\n\tat org.intellimate.izou.security.IzouSecurityManager.createSecurityManager(IzouSecurityManager.java:36)\r\n\tat org.intellimate.izou.main.Main.<init>(Main.java:117)\r\n\tat org.intellimate.izou.main.Main.<init>(Main.java:72)\r\n\tat Debug.main(Debug.java:14)\r\n```\r\n\r\nhere is the code causing the problem:\r\n```java\r\nString workingDir = FileSystemManager.FULL_WORKING_DIRECTORY;\r\nwhile (!workingDir.endsWith(File.separator + \"Izou\" + File.separator)) {\r\n      workingDir = workingDir.substring(0, workingDir.length() - 1);\r\n}\r\n```\r\nthe value of workingDir is:`/Users/LeanderK/IdeaProjects/RPlay/.`\r\nit should be obvious why it fails\r\n\r\nplease fix it as soon as possible-i am not able to start anything\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/intellimate/Izou/issues/comments/99609474","html_url":"https://github.com/intellimate/Izou/issues/30#issuecomment-99609474","issue_url":"https://api.github.com/repos/intellimate/Izou/issues/30","id":99609474,"user":{"login":"jundl77","id":3936594,"avatar_url":"https://avatars.githubusercontent.com/u/3936594?v=3","gravatar_id":"","url":"https://api.github.com/users/jundl77","html_url":"https://github.com/jundl77","followers_url":"https://api.github.com/users/jundl77/followers","following_url":"https://api.github.com/users/jundl77/following{/other_user}","gists_url":"https://api.github.com/users/jundl77/gists{/gist_id}","starred_url":"https://api.github.com/users/jundl77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jundl77/subscriptions","organizations_url":"https://api.github.com/users/jundl77/orgs","repos_url":"https://api.github.com/users/jundl77/repos","events_url":"https://api.github.com/users/jundl77/events{/privacy}","received_events_url":"https://api.github.com/users/jundl77/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T21:04:01Z","updated_at":"2015-05-06T21:04:01Z","body":"done 2.0"}}