SB-854-1 problem with closed stream
@@ -190,7 +190,10 @@ public class NugetPackageController extends BaseArtifactController
response.setHeader("Content-Disposition", String.format("attachment; filename=\"%s\"", nupkgFile.getFileName()));
ArtifactControllerHelper.setHeadersForChecksums(is, response);
- copyToResponse(is, response);
+ // unfortunately 'new TempNupkgFile(is)' closes 'is' stream :(
+ InputStream isCopy = getArtifactManagementService().resolve(storageId, repositoryId, path);
+
+ copyToResponse(isCopy, response);
}
}
