Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 52756 invoked from network); 8 Aug 2009 01:37:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Aug 2009 01:37:31 -0000 Received: (qmail 74973 invoked by uid 500); 8 Aug 2009 01:37:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 74888 invoked by uid 500); 8 Aug 2009 01:37:37 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 74880 invoked by uid 99); 8 Aug 2009 01:37:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Aug 2009 01:37:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Aug 2009 01:37:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D4CA29A0013 for ; Fri, 7 Aug 2009 18:37:15 -0700 (PDT) Message-ID: <449754570.1249695435118.JavaMail.jira@brutus> Date: Fri, 7 Aug 2009 18:37:15 -0700 (PDT) From: "Dave Marion (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-2250) Base64 bug - last buffer not flushed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Base64 bug - last buffer not flushed ------------------------------------ Key: JCR-2250 URL: https://issues.apache.org/jira/browse/JCR-2250 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr-commons Affects Versions: 1.5.4 Environment: RedHat Linux 5.2 Client, x86-64 Reporter: Dave Marion I found an issue when using the org.apache.jackrabbit.util.Base64.encode(InputStream in, OutputStream out) method. It appears that the issue is that the last buffer is not flushed on the Writer that it creates before returning from the method. I was able to work around this issue by creating a Writer my own program, and call another encode method, and then call the flush() method before using the data. The source in trunk appears the same. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.