{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments/31448228","id":31448228,"diff_hunk":"@@ -82,6 +80,16 @@ public synchronized URL getResource(String name) {\n         return super.getResource(name);\n     }\n \n+    @Override\n+    public Enumeration<URL> getResources(String name) throws IOException {\n+        for (String mask : masksResources) {\n+            if(name.startsWith(mask))\n+                return null;","path":"core/src/main/java/hudson/util/MaskingClassLoader.java","position":22,"original_position":22,"commit_id":"40e75129f40675f8a71b489b38c5911b37cb8559","original_commit_id":"40e75129f40675f8a71b489b38c5911b37cb8559","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"Is this even legal? Safer to return an empty enumeration.","created_at":"2015-06-01T17:24:55Z","updated_at":"2015-06-01T17:24:55Z","html_url":"https://github.com/jenkinsci/jenkins/pull/1725#discussion_r31448228","pull_request_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments/31448228"},"html":{"href":"https://github.com/jenkinsci/jenkins/pull/1725#discussion_r31448228"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725","id":36638471,"html_url":"https://github.com/jenkinsci/jenkins/pull/1725","diff_url":"https://github.com/jenkinsci/jenkins/pull/1725.diff","patch_url":"https://github.com/jenkinsci/jenkins/pull/1725.patch","issue_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1725","number":1725,"state":"open","locked":false,"title":"Contine the JENKINS-27289 ticket: update the getResources as well","user":{"login":"liorhson","id":6830400,"avatar_url":"https://avatars.githubusercontent.com/u/6830400?v=3","gravatar_id":"","url":"https://api.github.com/users/liorhson","html_url":"https://github.com/liorhson","followers_url":"https://api.github.com/users/liorhson/followers","following_url":"https://api.github.com/users/liorhson/following{/other_user}","gists_url":"https://api.github.com/users/liorhson/gists{/gist_id}","starred_url":"https://api.github.com/users/liorhson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorhson/subscriptions","organizations_url":"https://api.github.com/users/liorhson/orgs","repos_url":"https://api.github.com/users/liorhson/repos","events_url":"https://api.github.com/users/liorhson/events{/privacy}","received_events_url":"https://api.github.com/users/liorhson/received_events","type":"User","site_admin":false},"body":"To @jglick request, Override the `getResources` method.\r\nThis PR continues the implementation from #1598 \r\n\r\n\r\nLink to Jira: https://issues.jenkins-ci.org/browse/JENKINS-27289","created_at":"2015-06-01T15:12:55Z","updated_at":"2015-06-01T17:24:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af7b2c83cc3bef784c68c31da3d712546f47fc8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1725/comments","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/40e75129f40675f8a71b489b38c5911b37cb8559","head":{"label":"liorhson:JENKINS-27289-update","ref":"JENKINS-27289-update","sha":"40e75129f40675f8a71b489b38c5911b37cb8559","user":{"login":"liorhson","id":6830400,"avatar_url":"https://avatars.githubusercontent.com/u/6830400?v=3","gravatar_id":"","url":"https://api.github.com/users/liorhson","html_url":"https://github.com/liorhson","followers_url":"https://api.github.com/users/liorhson/followers","following_url":"https://api.github.com/users/liorhson/following{/other_user}","gists_url":"https://api.github.com/users/liorhson/gists{/gist_id}","starred_url":"https://api.github.com/users/liorhson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorhson/subscriptions","organizations_url":"https://api.github.com/users/liorhson/orgs","repos_url":"https://api.github.com/users/liorhson/repos","events_url":"https://api.github.com/users/liorhson/events{/privacy}","received_events_url":"https://api.github.com/users/liorhson/received_events","type":"User","site_admin":false},"repo":{"id":31895145,"name":"jenkins","full_name":"liorhson/jenkins","owner":{"login":"liorhson","id":6830400,"avatar_url":"https://avatars.githubusercontent.com/u/6830400?v=3","gravatar_id":"","url":"https://api.github.com/users/liorhson","html_url":"https://github.com/liorhson","followers_url":"https://api.github.com/users/liorhson/followers","following_url":"https://api.github.com/users/liorhson/following{/other_user}","gists_url":"https://api.github.com/users/liorhson/gists{/gist_id}","starred_url":"https://api.github.com/users/liorhson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorhson/subscriptions","organizations_url":"https://api.github.com/users/liorhson/orgs","repos_url":"https://api.github.com/users/liorhson/repos","events_url":"https://api.github.com/users/liorhson/events{/privacy}","received_events_url":"https://api.github.com/users/liorhson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liorhson/jenkins","description":"Jenkins Continuous Integration Server","fork":true,"url":"https://api.github.com/repos/liorhson/jenkins","forks_url":"https://api.github.com/repos/liorhson/jenkins/forks","keys_url":"https://api.github.com/repos/liorhson/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liorhson/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liorhson/jenkins/teams","hooks_url":"https://api.github.com/repos/liorhson/jenkins/hooks","issue_events_url":"https://api.github.com/repos/liorhson/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/liorhson/jenkins/events","assignees_url":"https://api.github.com/repos/liorhson/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/liorhson/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/liorhson/jenkins/tags","blobs_url":"https://api.github.com/repos/liorhson/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liorhson/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liorhson/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/liorhson/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liorhson/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/liorhson/jenkins/languages","stargazers_url":"https://api.github.com/repos/liorhson/jenkins/stargazers","contributors_url":"https://api.github.com/repos/liorhson/jenkins/contributors","subscribers_url":"https://api.github.com/repos/liorhson/jenkins/subscribers","subscription_url":"https://api.github.com/repos/liorhson/jenkins/subscription","commits_url":"https://api.github.com/repos/liorhson/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/liorhson/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/liorhson/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/liorhson/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/liorhson/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/liorhson/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liorhson/jenkins/merges","archive_url":"https://api.github.com/repos/liorhson/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liorhson/jenkins/downloads","issues_url":"https://api.github.com/repos/liorhson/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/liorhson/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/liorhson/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/liorhson/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liorhson/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/liorhson/jenkins/releases{/id}","created_at":"2015-03-09T11:38:07Z","updated_at":"2015-05-05T08:34:50Z","pushed_at":"2015-06-01T15:06:54Z","git_url":"git://github.com/liorhson/jenkins.git","ssh_url":"git@github.com:liorhson/jenkins.git","clone_url":"https://github.com/liorhson/jenkins.git","svn_url":"https://github.com/liorhson/jenkins","homepage":"http://jenkins-ci.org/","size":86054,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"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":"jenkinsci:master","ref":"master","sha":"aa0d84a19a30ea8693c71fe13492b079d40957c7","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":1103607,"name":"jenkins","full_name":"jenkinsci/jenkins","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/jenkins","description":"Jenkins Continuous Integration Server","fork":true,"url":"https://api.github.com/repos/jenkinsci/jenkins","forks_url":"https://api.github.com/repos/jenkinsci/jenkins/forks","keys_url":"https://api.github.com/repos/jenkinsci/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/jenkins/teams","hooks_url":"https://api.github.com/repos/jenkinsci/jenkins/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/jenkins/events","assignees_url":"https://api.github.com/repos/jenkinsci/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/jenkins/tags","blobs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/jenkins/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/jenkins/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/jenkins/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/jenkins/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/jenkins/subscription","commits_url":"https://api.github.com/repos/jenkinsci/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/jenkins/merges","archive_url":"https://api.github.com/repos/jenkinsci/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/jenkins/downloads","issues_url":"https://api.github.com/repos/jenkinsci/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/jenkins/releases{/id}","created_at":"2010-11-22T21:21:23Z","updated_at":"2015-06-01T11:19:35Z","pushed_at":"2015-06-01T16:59:51Z","git_url":"git://github.com/jenkinsci/jenkins.git","ssh_url":"git@github.com:jenkinsci/jenkins.git","clone_url":"https://github.com/jenkinsci/jenkins.git","svn_url":"https://github.com/jenkinsci/jenkins","homepage":"http://jenkins-ci.org/","size":423715,"stargazers_count":4119,"watchers_count":4119,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1835,"mirror_url":null,"open_issues_count":111,"forks":1835,"open_issues":111,"watchers":4119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725"},"html":{"href":"https://github.com/jenkinsci/jenkins/pull/1725"},"issue":{"href":"https://api.github.com/repos/jenkinsci/jenkins/issues/1725"},"comments":{"href":"https://api.github.com/repos/jenkinsci/jenkins/issues/1725/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1725/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/jenkins/statuses/40e75129f40675f8a71b489b38c5911b37cb8559"}}}}