You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "hector rovira (JIRA)" <ji...@apache.org> on 2008/10/22 21:45:44 UTC

[jira] Created: (JCR-1830) XMLTextExtractor throws Exception when encoding is empty string

XMLTextExtractor throws Exception when encoding is empty string
---------------------------------------------------------------

                 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


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.


[jira] Updated: (JCR-1830) XMLTextExtractor throws Exception when new xml file is imported into Jackrabbit

Posted by "hector rovira (JIRA)" <ji...@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.


[jira] Updated: (JCR-1830) XMLTextExtractor returns an empty reader when encoding is unsupported

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1830:
-------------------------------

    Fix Version/s:     (was: 1.6.0)
                   1.5.0

Merged to the 1.5 branch in revision 708616.

> XMLTextExtractor returns an empty reader when encoding is unsupported
> ---------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>             Fix For: 1.5.0
>
>   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.


[jira] Resolved: (JCR-1830) XMLTextExtractor returns an empty reader when encoding is unsupported

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved JCR-1830.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.0

Fixed in revision: 707310

> XMLTextExtractor returns an empty reader when encoding is unsupported
> ---------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>             Fix For: 1.6.0
>
>   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.


[jira] Updated: (JCR-1830) XMLTextExtractor throws Exception when new xml file is inserted into JCR

Posted by "hector rovira (JIRA)" <ji...@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 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.


[jira] Updated: (JCR-1830) XMLTextExtractor returns an empty reader when encoding is unsupported

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger updated JCR-1830:
----------------------------------

    Priority: Minor  (was: Major)
     Summary: XMLTextExtractor returns an empty reader when encoding is unsupported  (was: XMLTextExtractor throws Exception when new xml file is inserted into JCR)

Similar to JCR-1829.

> XMLTextExtractor returns an empty reader when encoding is unsupported
> ---------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>   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.