{"action":"created","comment":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/178753707","pull_request_review_id":108862231,"id":178753707,"diff_hunk":"@@ -0,0 +1,478 @@\n+package org.carlspring.strongbox.nuget.file;\n+\n+import java.io.*;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.zip.ZipInputStream;\n+import javax.xml.bind.JAXBContext;\n+import javax.xml.bind.JAXBException;\n+import javax.xml.bind.Marshaller;\n+import javax.xml.bind.Unmarshaller;\n+import javax.xml.bind.ValidationEvent;\n+import javax.xml.bind.ValidationEventHandler;\n+import javax.xml.bind.annotation.XmlAccessType;\n+import javax.xml.bind.annotation.XmlAccessorType;\n+import javax.xml.bind.annotation.XmlAttribute;\n+import javax.xml.bind.annotation.XmlElement;\n+import javax.xml.bind.annotation.XmlElementWrapper;\n+import javax.xml.bind.annotation.XmlRootElement;\n+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;\n+import javax.xml.transform.sax.SAXSource;\n+\n+import org.apache.commons.io.IOUtils;\n+import org.xml.sax.InputSource;\n+import org.xml.sax.SAXException;\n+import org.xml.sax.XMLReader;\n+import org.xml.sax.helpers.XMLReaderFactory;\n+\n+@XmlRootElement(\n+        name = \"package\",\n+        namespace = \"http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd\"\n+)\n+@XmlAccessorType(XmlAccessType.NONE)\n+public class NuspecFile\n+        implements Serializable\n+{\n+\n+    public static final String NUSPEC_XML_NAMESPACE_2012 = \"http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2013 = \"http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2016 = \"http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2013_01 = \"http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2011 = \"http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2010 = \"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_2017 = \"http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd\";\n+    public static final String NUSPEC_XML_NAMESPACE_EMPTY = \"\";\n+    public static final String DEFAULT_FILE_EXTENSION = \".nuspec\";\n+    @XmlElement(\n+            name = \"metadata\",\n+            namespace = \"http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd\"\n+    )\n+    private NuspecFile.Metadata metadata;\n+    @XmlElement(\n+            name = \"file\",\n+            namespace = \"http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd\"\n+    )\n+    @XmlElementWrapper(\n+            name = \"files\",\n+            namespace = \"http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd\"\n+    )\n+    private List<NuspecFile.NugetFile> files;\n+\n+    public static NuspecFile Parse(InputStream inputStream)\n+            throws NugetFormatException\n+    {\n+        try\n+        {\n+            JAXBContext context = JAXBContext.newInstance(NuspecFile.class);","path":"strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-nuget-layout-provider/src/main/java/org/carlspring/strongbox/nuget/file/NuspecFile.java","position":66,"original_position":66,"commit_id":"0aa9f84c1334d9014b9cc99eb9261d9f189f2974","original_commit_id":"0aa9f84c1334d9014b9cc99eb9261d9f189f2974","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":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') The method name org.carlspring.strongbox.nuget.file.NuspecFile.Parse(InputStream) doesn't start with a lower case letter [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://dev.carlspring.org/sonar/coding_rules#rule_key=findbugs%3ANM_METHOD_NAMING_CONVENTION)\n","created_at":"2018-04-03T08:51:40Z","updated_at":"2018-04-03T08:51:41Z","html_url":"https://github.com/strongbox/strongbox/pull/676#discussion_r178753707","pull_request_url":"https://api.github.com/repos/strongbox/strongbox/pulls/676","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/178753707"},"html":{"href":"https://github.com/strongbox/strongbox/pull/676#discussion_r178753707"},"pull_request":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/676"}}},"pull_request":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/676","id":178815201,"html_url":"https://github.com/strongbox/strongbox/pull/676","diff_url":"https://github.com/strongbox/strongbox/pull/676.diff","patch_url":"https://github.com/strongbox/strongbox/pull/676.patch","issue_url":"https://api.github.com/repos/strongbox/strongbox/issues/676","number":676,"state":"open","locked":false,"title":" #611 Exclude ru.aristar.jnuget.files.Nupkg usage from Strongbox ","user":{"login":"gokhankuyucak","id":16894329,"avatar_url":"https://avatars2.githubusercontent.com/u/16894329?v=4","gravatar_id":"","url":"https://api.github.com/users/gokhankuyucak","html_url":"https://github.com/gokhankuyucak","followers_url":"https://api.github.com/users/gokhankuyucak/followers","following_url":"https://api.github.com/users/gokhankuyucak/following{/other_user}","gists_url":"https://api.github.com/users/gokhankuyucak/gists{/gist_id}","starred_url":"https://api.github.com/users/gokhankuyucak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokhankuyucak/subscriptions","organizations_url":"https://api.github.com/users/gokhankuyucak/orgs","repos_url":"https://api.github.com/users/gokhankuyucak/repos","events_url":"https://api.github.com/users/gokhankuyucak/events{/privacy}","received_events_url":"https://api.github.com/users/gokhankuyucak/received_events","type":"User","site_admin":false},"body":"Used ZipInputStream for extracting nuspec file from nupkg. In NugetArtifactController.extractNuspecFile emth\r\nCopied Nuspec and related POJOs from jnuget","created_at":"2018-04-02T10:33:47Z","updated_at":"2018-04-03T08:51:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"076fd0e51ca4ca1696839734e9467ed3334571d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/strongbox/strongbox/pulls/676/commits","review_comments_url":"https://api.github.com/repos/strongbox/strongbox/pulls/676/comments","review_comment_url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongbox/strongbox/issues/676/comments","statuses_url":"https://api.github.com/repos/strongbox/strongbox/statuses/0aa9f84c1334d9014b9cc99eb9261d9f189f2974","head":{"label":"gokhankuyucak:master","ref":"master","sha":"0aa9f84c1334d9014b9cc99eb9261d9f189f2974","user":{"login":"gokhankuyucak","id":16894329,"avatar_url":"https://avatars2.githubusercontent.com/u/16894329?v=4","gravatar_id":"","url":"https://api.github.com/users/gokhankuyucak","html_url":"https://github.com/gokhankuyucak","followers_url":"https://api.github.com/users/gokhankuyucak/followers","following_url":"https://api.github.com/users/gokhankuyucak/following{/other_user}","gists_url":"https://api.github.com/users/gokhankuyucak/gists{/gist_id}","starred_url":"https://api.github.com/users/gokhankuyucak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokhankuyucak/subscriptions","organizations_url":"https://api.github.com/users/gokhankuyucak/orgs","repos_url":"https://api.github.com/users/gokhankuyucak/repos","events_url":"https://api.github.com/users/gokhankuyucak/events{/privacy}","received_events_url":"https://api.github.com/users/gokhankuyucak/received_events","type":"User","site_admin":false},"repo":{"id":117240097,"name":"strongbox","full_name":"gokhankuyucak/strongbox","owner":{"login":"gokhankuyucak","id":16894329,"avatar_url":"https://avatars2.githubusercontent.com/u/16894329?v=4","gravatar_id":"","url":"https://api.github.com/users/gokhankuyucak","html_url":"https://github.com/gokhankuyucak","followers_url":"https://api.github.com/users/gokhankuyucak/followers","following_url":"https://api.github.com/users/gokhankuyucak/following{/other_user}","gists_url":"https://api.github.com/users/gokhankuyucak/gists{/gist_id}","starred_url":"https://api.github.com/users/gokhankuyucak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokhankuyucak/subscriptions","organizations_url":"https://api.github.com/users/gokhankuyucak/orgs","repos_url":"https://api.github.com/users/gokhankuyucak/repos","events_url":"https://api.github.com/users/gokhankuyucak/events{/privacy}","received_events_url":"https://api.github.com/users/gokhankuyucak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gokhankuyucak/strongbox","description":"Strongbox is an artifact repository manager.","fork":true,"url":"https://api.github.com/repos/gokhankuyucak/strongbox","forks_url":"https://api.github.com/repos/gokhankuyucak/strongbox/forks","keys_url":"https://api.github.com/repos/gokhankuyucak/strongbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gokhankuyucak/strongbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gokhankuyucak/strongbox/teams","hooks_url":"https://api.github.com/repos/gokhankuyucak/strongbox/hooks","issue_events_url":"https://api.github.com/repos/gokhankuyucak/strongbox/issues/events{/number}","events_url":"https://api.github.com/repos/gokhankuyucak/strongbox/events","assignees_url":"https://api.github.com/repos/gokhankuyucak/strongbox/assignees{/user}","branches_url":"https://api.github.com/repos/gokhankuyucak/strongbox/branches{/branch}","tags_url":"https://api.github.com/repos/gokhankuyucak/strongbox/tags","blobs_url":"https://api.github.com/repos/gokhankuyucak/strongbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gokhankuyucak/strongbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gokhankuyucak/strongbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/gokhankuyucak/strongbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gokhankuyucak/strongbox/statuses/{sha}","languages_url":"https://api.github.com/repos/gokhankuyucak/strongbox/languages","stargazers_url":"https://api.github.com/repos/gokhankuyucak/strongbox/stargazers","contributors_url":"https://api.github.com/repos/gokhankuyucak/strongbox/contributors","subscribers_url":"https://api.github.com/repos/gokhankuyucak/strongbox/subscribers","subscription_url":"https://api.github.com/repos/gokhankuyucak/strongbox/subscription","commits_url":"https://api.github.com/repos/gokhankuyucak/strongbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/gokhankuyucak/strongbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/gokhankuyucak/strongbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/gokhankuyucak/strongbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/gokhankuyucak/strongbox/contents/{+path}","compare_url":"https://api.github.com/repos/gokhankuyucak/strongbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gokhankuyucak/strongbox/merges","archive_url":"https://api.github.com/repos/gokhankuyucak/strongbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gokhankuyucak/strongbox/downloads","issues_url":"https://api.github.com/repos/gokhankuyucak/strongbox/issues{/number}","pulls_url":"https://api.github.com/repos/gokhankuyucak/strongbox/pulls{/number}","milestones_url":"https://api.github.com/repos/gokhankuyucak/strongbox/milestones{/number}","notifications_url":"https://api.github.com/repos/gokhankuyucak/strongbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gokhankuyucak/strongbox/labels{/name}","releases_url":"https://api.github.com/repos/gokhankuyucak/strongbox/releases{/id}","deployments_url":"https://api.github.com/repos/gokhankuyucak/strongbox/deployments","created_at":"2018-01-12T12:45:16Z","updated_at":"2018-04-02T10:26:32Z","pushed_at":"2018-04-02T10:26:31Z","git_url":"git://github.com/gokhankuyucak/strongbox.git","ssh_url":"git@github.com:gokhankuyucak/strongbox.git","clone_url":"https://github.com/gokhankuyucak/strongbox.git","svn_url":"https://github.com/gokhankuyucak/strongbox","homepage":"","size":8506,"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,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"strongbox:master","ref":"master","sha":"2744d7f846dd049bd7b332a68fcca432548ef106","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":"2018-04-02T12:24:15Z","pushed_at":"2018-04-02T19:33:25Z","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":8476,"stargazers_count":31,"watchers_count":31,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":50,"open_issues":50,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/676"},"html":{"href":"https://github.com/strongbox/strongbox/pull/676"},"issue":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/676"},"comments":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/676/comments"},"review_comments":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/676/comments"},"review_comment":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/676/commits"},"statuses":{"href":"https://api.github.com/repos/strongbox/strongbox/statuses/0aa9f84c1334d9014b9cc99eb9261d9f189f2974"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"cs-devops-bot"}}