Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 44857 invoked from network); 22 Oct 2008 19:54:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 19:54:42 -0000 Received: (qmail 62633 invoked by uid 500); 22 Oct 2008 19:54:38 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 62586 invoked by uid 500); 22 Oct 2008 19:54:38 -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 62385 invoked by uid 99); 22 Oct 2008 19:54:38 -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:54:38 -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:53:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DDF4234C236 for ; Wed, 22 Oct 2008 12:53:44 -0700 (PDT) Message-ID: <1625632616.1224705224318.JavaMail.jira@brutus> Date: Wed, 22 Oct 2008 12:53:44 -0700 (PDT) From: "hector rovira (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1830) XMLTextExtractor throws Exception when new xml file is imported into Jackrabbit In-Reply-To: <345380416.1224704744507.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] hector rovira updated JCR-1830: ------------------------------- Summary: XMLTextExtractor throws Exception when new xml file is imported into Jackrabbit (was: XMLTextExtractor throws Exception when encoding is empty string) > XMLTextExtractor throws Exception when new xml file is imported into Jackrabbit > ------------------------------------------------------------------------------- > > Key: JCR-1830 > URL: https://issues.apache.org/jira/browse/JCR-1830 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-text-extractors > Affects Versions: 1.4 > Environment: Reproduced in Linux > Reporter: hector rovira > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > XMLTextExtractor is failing to index xml files. Searching for content in xml 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 an exception at line 62 (reader.parse(source)). > 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.