jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1829) PlainTextExtractor returns an empty reader when encoding is unsupported
Date Tue, 28 Oct 2008 17:25:44 GMT

     [ https://issues.apache.org/jira/browse/JCR-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting updated JCR-1829:
-------------------------------

    Fix Version/s:     (was: 1.6.0)
                   1.5.0

Merged to the 1.5 branch in revision 708616.

> PlainTextExtractor returns an empty reader when encoding is unsupported
> -----------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>             Fix For: 1.5.0
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> 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.


Mime
View raw message