jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hector rovira (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1830) XMLTextExtractor throws Exception when new xml file is inserted into JCR
Date Wed, 22 Oct 2008 19:53:44 GMT

     [ 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 inserted into JCR  (was:
XMLTextExtractor throws Exception when new xml file is imported into Jackrabbit)

> XMLTextExtractor throws Exception when new xml file is inserted into JCR
> ------------------------------------------------------------------------
>
>                 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.


Mime
View raw message