Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 32123 invoked from network); 22 Oct 2008 19:25:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 19:25:07 -0000 Received: (qmail 31186 invoked by uid 500); 22 Oct 2008 19:25:08 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 31159 invoked by uid 500); 22 Oct 2008 19:25:08 -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 31148 invoked by uid 99); 22 Oct 2008 19:25:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 12:25:08 -0700 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; Wed, 22 Oct 2008 19:24:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20A02234C22D for ; Wed, 22 Oct 2008 12:24:45 -0700 (PDT) Message-ID: <1502401167.1224703484795.JavaMail.jira@brutus> Date: Wed, 22 Oct 2008 12:24:44 -0700 (PDT) From: "hector rovira (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1829) PlainTextExtractor throws UnsupportedEncodingException when encoding is empty string MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org PlainTextExtractor throws UnsupportedEncodingException when encoding is empty string ------------------------------------------------------------------------------------ Key: JCR-1829 URL: https://issues.apache.org/jira/browse/JCR-1829 Project: Jackrabbit Issue Type: Bug Components: jackrabbit-text-extractors Affects Versions: 1.4 Environment: Reproduced in Linux and Windows Reporter: hector rovira PlainTextExtractor is failing to index text files. Searching for content in text files is not coming back with results. On the extractText(InputStream stream, String type, String encoding) method, the encoding is coming in as an empty string, and it throws the java.io.UnsupportedEncodingException at line 40 ( return new InputStreamReader(stream, encoding); ). modifying the following statement fixes the problem: before: if (encoding != null) { after: if (encoding != null && !encoding.equals("")) { -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.