Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 693EC17C45 for ; Mon, 6 Apr 2015 13:55:13 +0000 (UTC) Received: (qmail 94162 invoked by uid 500); 6 Apr 2015 13:55:12 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 94085 invoked by uid 500); 6 Apr 2015 13:55:12 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 93784 invoked by uid 99); 6 Apr 2015 13:55:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 13:55:12 +0000 Date: Mon, 6 Apr 2015 13:55:12 +0000 (UTC) From: "Bob Thorman (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-2795) FileInputStream is not closed in CertUtils#createPublicCert() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Thorman updated ACCUMULO-2795: ---------------------------------- Attachment: ACCUMULO-2795.patch ACCUMULO-2795 FileInputStream is not closed in CertUtils#createPublicCert() Added local FileInputSteam members and close when the method was complete. > FileInputStream is not closed in CertUtils#createPublicCert() > ------------------------------------------------------------- > > Key: ACCUMULO-2795 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2795 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.6.0 > Reporter: Ted Yu > Assignee: Bob Thorman > Priority: Trivial > Labels: newbie > Fix For: 1.7.0, 1.6.3 > > Attachments: ACCUMULO-2795.patch > > > In createPublicCert() of test/src/test/java/org/apache/accumulo/test/util/CertUtils.java : > {code} > signerKeystore.load(new FileInputStream(rootKeystorePath), signerPasswordArray); > {code} > The FileInputStream is not closed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)