{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/january/issues/172","repository_url":"https://api.github.com/repos/eclipse/january","labels_url":"https://api.github.com/repos/eclipse/january/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/january/issues/172/comments","events_url":"https://api.github.com/repos/eclipse/january/issues/172/events","html_url":"https://github.com/eclipse/january/issues/172","id":226647563,"number":172,"title":"LazyDatasetBase properties access fails in secure environment","user":{"login":"scottslewis","id":159988,"avatar_url":"https://avatars1.githubusercontent.com/u/159988?v=3","gravatar_id":"","url":"https://api.github.com/users/scottslewis","html_url":"https://github.com/scottslewis","followers_url":"https://api.github.com/users/scottslewis/followers","following_url":"https://api.github.com/users/scottslewis/following{/other_user}","gists_url":"https://api.github.com/users/scottslewis/gists{/gist_id}","starred_url":"https://api.github.com/users/scottslewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottslewis/subscriptions","organizations_url":"https://api.github.com/users/scottslewis/orgs","repos_url":"https://api.github.com/users/scottslewis/repos","events_url":"https://api.github.com/users/scottslewis/events{/privacy}","received_events_url":"https://api.github.com/users/scottslewis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-05T17:59:46Z","updated_at":"2017-05-05T17:59:46Z","closed_at":null,"body":"My environment is an OSGi framework impl running with the Java security manager...not Eclipse.\r\n\r\nIn LazyDatasetBase is this initialization code:\r\n\r\nprotected static boolean catchExceptions;\r\n\t\r\n\tstatic {\r\n\t\t/**\r\n\t\t * Boolean to set to true if running jython scripts that utilise ScisoftPy in IDE\r\n\t\t */\r\n\t\tcatchExceptions = Boolean.getBoolean(\"run.in.eclipse\");\r\n}\r\n\r\nThis fails...and therefore the class cannot be loaded at all...in my environment where untrusted bundles are not allowed property access (via Boolean.getBoolean).   \r\n\r\nYou could follow the OSGi permissions structure, and put a permissions.perm file in META-INF, but that may be overkill given that catchExceptions doesn't look that critical.   You could also just set catchExceptions to false by default, and put a try/catch (Exception) block in the static initialized, so that this doesn't prevent the class from loading in such environments.\r\n\r\nThanks."}}
{"actor":{"display_login":"scottslewis"}}