Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1737318A27 for ; Tue, 15 Dec 2015 17:45:47 +0000 (UTC) Received: (qmail 65668 invoked by uid 500); 15 Dec 2015 17:45:46 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 65630 invoked by uid 500); 15 Dec 2015 17:45:46 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 65605 invoked by uid 99); 15 Dec 2015 17:45:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2015 17:45:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9F4732C1F6B for ; Tue, 15 Dec 2015 17:45:46 +0000 (UTC) Date: Tue, 15 Dec 2015 17:45:46 +0000 (UTC) From: "Eduardo Aguinaga (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KARAF-4210) Unreleased Resource: Streams MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Eduardo Aguinaga created KARAF-4210: --------------------------------------- Summary: Unreleased Resource: Streams Key: KARAF-4210 URL: https://issues.apache.org/jira/browse/KARAF-4210 Project: Karaf Issue Type: Bug Affects Versions: 4.0.3 Reporter: Eduardo Aguinaga HP Fortify SCA and SciTools Understand were used to perform an application security analysis on the karaf source code. The function getLocalRepoFromConfig() in MavenConfigService.java sometimes fails to release a system resource allocated by FileInputStream() on line 74. File: bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/MavenConfigService.java Line: 74 MavenConfigService.java, lines 66-76: 66 static String getLocalRepoFromConfig(Dictionary dict) throws XMLStreamException, FileNotFoundException { 67 String path = null; 68 if (dict != null) { 69 path = (String) dict.get("org.ops4j.pax.url.mvn.localRepository"); 70 if (path == null) { 71 String settings = (String) dict.get("org.ops4j.pax.url.mvn.settings"); 72 if (settings != null) { 73 File file = new File(settings); 74 XMLStreamReader reader = XMLInputFactory.newFactory().createXMLStreamReader(new FileInputStream(file)); 75 try { 76 int event; -- This message was sent by Atlassian JIRA (v6.3.4#6332)