{"action":"created","comment":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/130245161","pull_request_review_id":53099512,"id":130245161,"diff_hunk":"@@ -0,0 +1,182 @@\n+package org.carlspring.strongbox.artifact.coordinates;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.nio.file.Files;\n+import java.nio.file.attribute.BasicFileAttributes;\n+import java.security.NoSuchAlgorithmException;\n+import java.util.Base64;\n+import java.util.Date;\n+import java.util.EnumSet;\n+import java.util.List;\n+import java.util.Map;\n+\n+import org.carlspring.strongbox.providers.io.RepositoryFileAttributes;\n+import org.carlspring.strongbox.providers.io.RepositoryPath;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import ru.aristar.jnuget.Version;\n+import ru.aristar.jnuget.files.Framework;\n+import ru.aristar.jnuget.files.Hash;\n+import ru.aristar.jnuget.files.NugetFormatException;\n+import ru.aristar.jnuget.files.Nupkg;\n+import ru.aristar.jnuget.files.nuspec.NuspecFile;\n+\n+public class PathNupkg implements Nupkg\n+{\n+    \n+    private static final Logger logger = LoggerFactory.getLogger(PathNupkg.class);\n+\n+    private RepositoryPath path;\n+    \n+    public PathNupkg(RepositoryPath path)\n+    {\n+        this.path = path;\n+    }\n+\n+    @Override\n+    public String getFileName()\n+    {\n+        return path.getFileName().toString();","path":"strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-nuget-layout-provider/src/main/java/org/carlspring/strongbox/artifact/coordinates/PathNupkg.java","position":41,"original_position":41,"commit_id":"f8090e58437d5e818ee59865df98dd1403b1a794","original_commit_id":"f8090e58437d5e818ee59865df98dd1403b1a794","user":{"login":"cs-devops-bot","id":20419677,"avatar_url":"https://avatars3.githubusercontent.com/u/20419677?v=4","gravatar_id":"","url":"https://api.github.com/users/cs-devops-bot","html_url":"https://github.com/cs-devops-bot","followers_url":"https://api.github.com/users/cs-devops-bot/followers","following_url":"https://api.github.com/users/cs-devops-bot/following{/other_user}","gists_url":"https://api.github.com/users/cs-devops-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-devops-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-devops-bot/subscriptions","organizations_url":"https://api.github.com/users/cs-devops-bot/orgs","repos_url":"https://api.github.com/users/cs-devops-bot/repos","events_url":"https://api.github.com/users/cs-devops-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cs-devops-bot/received_events","type":"User","site_admin":false},"body":"![INFO](https://sonarsource.github.io/sonar-github/severity-info.png 'Severity: INFO') Possible null pointer dereference in org.carlspring.strongbox.artifact.coordinates.PathNupkg.getFileName() due to return value of called method [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://dev.carlspring.org/sonar/coding_rules#rule_key=findbugs%3ANP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE)\n","created_at":"2017-07-30T15:27:03Z","updated_at":"2017-07-30T15:27:03Z","html_url":"https://github.com/strongbox/strongbox/pull/320#discussion_r130245161","pull_request_url":"https://api.github.com/repos/strongbox/strongbox/pulls/320","_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/130245161"},"html":{"href":"https://github.com/strongbox/strongbox/pull/320#discussion_r130245161"},"pull_request":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/320"}}},"pull_request":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/320","id":133129238,"html_url":"https://github.com/strongbox/strongbox/pull/320","diff_url":"https://github.com/strongbox/strongbox/pull/320.diff","patch_url":"https://github.com/strongbox/strongbox/pull/320.patch","issue_url":"https://api.github.com/repos/strongbox/strongbox/issues/320","number":320,"state":"open","locked":false,"title":"SB-850: Packages search cases implemented to use with IDE","user":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars2.githubusercontent.com/u/22783811?v=4","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"body":"RSS request example:\r\n\r\n`http://localhost:8080/strongbox/storages/nuget-common-storage/nuget-releases/Search()?$filter=IsLatestVersion&$skip=0&$top=30&searchTerm=Org.Carlspring.Strongbox.Examples.Nuget.Mono&targetFramework=%27%27`\r\n\r\n`TODO:`\r\n- order by DownloadCount\r\n- search by LatestVersion\r\n\r\n`TODO` will be implemented within future tasks if needed ","created_at":"2017-07-30T13:51:40Z","updated_at":"2017-07-30T15:27:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eae11b410131bad9a9b294fc7a800a3676d221fa","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/strongbox/strongbox/pulls/320/commits","review_comments_url":"https://api.github.com/repos/strongbox/strongbox/pulls/320/comments","review_comment_url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongbox/strongbox/issues/320/comments","statuses_url":"https://api.github.com/repos/strongbox/strongbox/statuses/f8090e58437d5e818ee59865df98dd1403b1a794","head":{"label":"sbespalov:sbespalov_SB-850_2","ref":"sbespalov_SB-850_2","sha":"f8090e58437d5e818ee59865df98dd1403b1a794","user":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars2.githubusercontent.com/u/22783811?v=4","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"repo":{"id":72494340,"name":"strongbox","full_name":"sbespalov/strongbox","owner":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars2.githubusercontent.com/u/22783811?v=4","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbespalov/strongbox","description":null,"fork":true,"url":"https://api.github.com/repos/sbespalov/strongbox","forks_url":"https://api.github.com/repos/sbespalov/strongbox/forks","keys_url":"https://api.github.com/repos/sbespalov/strongbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbespalov/strongbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbespalov/strongbox/teams","hooks_url":"https://api.github.com/repos/sbespalov/strongbox/hooks","issue_events_url":"https://api.github.com/repos/sbespalov/strongbox/issues/events{/number}","events_url":"https://api.github.com/repos/sbespalov/strongbox/events","assignees_url":"https://api.github.com/repos/sbespalov/strongbox/assignees{/user}","branches_url":"https://api.github.com/repos/sbespalov/strongbox/branches{/branch}","tags_url":"https://api.github.com/repos/sbespalov/strongbox/tags","blobs_url":"https://api.github.com/repos/sbespalov/strongbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbespalov/strongbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbespalov/strongbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbespalov/strongbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbespalov/strongbox/statuses/{sha}","languages_url":"https://api.github.com/repos/sbespalov/strongbox/languages","stargazers_url":"https://api.github.com/repos/sbespalov/strongbox/stargazers","contributors_url":"https://api.github.com/repos/sbespalov/strongbox/contributors","subscribers_url":"https://api.github.com/repos/sbespalov/strongbox/subscribers","subscription_url":"https://api.github.com/repos/sbespalov/strongbox/subscription","commits_url":"https://api.github.com/repos/sbespalov/strongbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbespalov/strongbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbespalov/strongbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbespalov/strongbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbespalov/strongbox/contents/{+path}","compare_url":"https://api.github.com/repos/sbespalov/strongbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbespalov/strongbox/merges","archive_url":"https://api.github.com/repos/sbespalov/strongbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbespalov/strongbox/downloads","issues_url":"https://api.github.com/repos/sbespalov/strongbox/issues{/number}","pulls_url":"https://api.github.com/repos/sbespalov/strongbox/pulls{/number}","milestones_url":"https://api.github.com/repos/sbespalov/strongbox/milestones{/number}","notifications_url":"https://api.github.com/repos/sbespalov/strongbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbespalov/strongbox/labels{/name}","releases_url":"https://api.github.com/repos/sbespalov/strongbox/releases{/id}","deployments_url":"https://api.github.com/repos/sbespalov/strongbox/deployments","created_at":"2016-11-01T01:54:58Z","updated_at":"2016-11-01T01:55:00Z","pushed_at":"2017-07-30T15:22:44Z","git_url":"git://github.com/sbespalov/strongbox.git","ssh_url":"git@github.com:sbespalov/strongbox.git","clone_url":"https://github.com/sbespalov/strongbox.git","svn_url":"https://github.com/sbespalov/strongbox","homepage":null,"size":5613,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"strongbox:master","ref":"master","sha":"3deb82abbac91ae859b6bda6c356d4bb47cdf73b","user":{"login":"strongbox","id":5637881,"avatar_url":"https://avatars0.githubusercontent.com/u/5637881?v=4","gravatar_id":"","url":"https://api.github.com/users/strongbox","html_url":"https://github.com/strongbox","followers_url":"https://api.github.com/users/strongbox/followers","following_url":"https://api.github.com/users/strongbox/following{/other_user}","gists_url":"https://api.github.com/users/strongbox/gists{/gist_id}","starred_url":"https://api.github.com/users/strongbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongbox/subscriptions","organizations_url":"https://api.github.com/users/strongbox/orgs","repos_url":"https://api.github.com/users/strongbox/repos","events_url":"https://api.github.com/users/strongbox/events{/privacy}","received_events_url":"https://api.github.com/users/strongbox/received_events","type":"Organization","site_admin":false},"repo":{"id":11830269,"name":"strongbox","full_name":"strongbox/strongbox","owner":{"login":"strongbox","id":5637881,"avatar_url":"https://avatars0.githubusercontent.com/u/5637881?v=4","gravatar_id":"","url":"https://api.github.com/users/strongbox","html_url":"https://github.com/strongbox","followers_url":"https://api.github.com/users/strongbox/followers","following_url":"https://api.github.com/users/strongbox/following{/other_user}","gists_url":"https://api.github.com/users/strongbox/gists{/gist_id}","starred_url":"https://api.github.com/users/strongbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongbox/subscriptions","organizations_url":"https://api.github.com/users/strongbox/orgs","repos_url":"https://api.github.com/users/strongbox/repos","events_url":"https://api.github.com/users/strongbox/events{/privacy}","received_events_url":"https://api.github.com/users/strongbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongbox/strongbox","description":"Strongbox is an artifact repository manager.","fork":false,"url":"https://api.github.com/repos/strongbox/strongbox","forks_url":"https://api.github.com/repos/strongbox/strongbox/forks","keys_url":"https://api.github.com/repos/strongbox/strongbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongbox/strongbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongbox/strongbox/teams","hooks_url":"https://api.github.com/repos/strongbox/strongbox/hooks","issue_events_url":"https://api.github.com/repos/strongbox/strongbox/issues/events{/number}","events_url":"https://api.github.com/repos/strongbox/strongbox/events","assignees_url":"https://api.github.com/repos/strongbox/strongbox/assignees{/user}","branches_url":"https://api.github.com/repos/strongbox/strongbox/branches{/branch}","tags_url":"https://api.github.com/repos/strongbox/strongbox/tags","blobs_url":"https://api.github.com/repos/strongbox/strongbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongbox/strongbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongbox/strongbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongbox/strongbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongbox/strongbox/statuses/{sha}","languages_url":"https://api.github.com/repos/strongbox/strongbox/languages","stargazers_url":"https://api.github.com/repos/strongbox/strongbox/stargazers","contributors_url":"https://api.github.com/repos/strongbox/strongbox/contributors","subscribers_url":"https://api.github.com/repos/strongbox/strongbox/subscribers","subscription_url":"https://api.github.com/repos/strongbox/strongbox/subscription","commits_url":"https://api.github.com/repos/strongbox/strongbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongbox/strongbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongbox/strongbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongbox/strongbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongbox/strongbox/contents/{+path}","compare_url":"https://api.github.com/repos/strongbox/strongbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongbox/strongbox/merges","archive_url":"https://api.github.com/repos/strongbox/strongbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongbox/strongbox/downloads","issues_url":"https://api.github.com/repos/strongbox/strongbox/issues{/number}","pulls_url":"https://api.github.com/repos/strongbox/strongbox/pulls{/number}","milestones_url":"https://api.github.com/repos/strongbox/strongbox/milestones{/number}","notifications_url":"https://api.github.com/repos/strongbox/strongbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongbox/strongbox/labels{/name}","releases_url":"https://api.github.com/repos/strongbox/strongbox/releases{/id}","deployments_url":"https://api.github.com/repos/strongbox/strongbox/deployments","created_at":"2013-08-01T23:27:37Z","updated_at":"2017-07-12T18:30:59Z","pushed_at":"2017-07-30T15:22:45Z","git_url":"git://github.com/strongbox/strongbox.git","ssh_url":"git@github.com:strongbox/strongbox.git","clone_url":"https://github.com/strongbox/strongbox.git","svn_url":"https://github.com/strongbox/strongbox","homepage":"","size":5670,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":3,"forks":27,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/320"},"html":{"href":"https://github.com/strongbox/strongbox/pull/320"},"issue":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/320"},"comments":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/320/comments"},"review_comments":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/320/comments"},"review_comment":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/320/commits"},"statuses":{"href":"https://api.github.com/repos/strongbox/strongbox/statuses/f8090e58437d5e818ee59865df98dd1403b1a794"}}}}
{"actor":{"display_login":"cs-devops-bot"}}