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 4B97D105A5 for ; Wed, 29 Jan 2014 20:11:45 +0000 (UTC) Received: (qmail 79020 invoked by uid 500); 29 Jan 2014 20:08:19 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 78419 invoked by uid 500); 29 Jan 2014 20:07:48 -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 73494 invoked by uid 99); 29 Jan 2014 20:04:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 20:04:10 +0000 Date: Wed, 29 Jan 2014 20:04:10 +0000 (UTC) From: "Ted Yu (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-2278) Return value from in.read() should be checked in NonCachingSecretKeyEncryptionStrategy#doKeyEncryptionOperation() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ted Yu created ACCUMULO-2278: -------------------------------- Summary: Return value from in.read() should be checked in NonCachingSecretKeyEncryptionStrategy#doKeyEncryptionOperation() Key: ACCUMULO-2278 URL: https://issues.apache.org/jira/browse/ACCUMULO-2278 Project: Accumulo Issue Type: Bug Reporter: Ted Yu Priority: Minor Here is related code: {code} byte[] keyEncryptionKey = new byte[keyEncryptionKeyLength]; in.read(keyEncryptionKey); {code} The return value should be checked so that we don't need to call cipher.init() in case encryption key isn't read properly. -- This message was sent by Atlassian JIRA (v6.1.5#6160)