You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Henri Bergius (JIRA)" <ji...@apache.org> on 2011/09/20 11:21:09 UTC

[jira] [Created] (TIKA-725) Empty title element makes Tika-generated HTML documents not open in Chromium

Empty title element makes Tika-generated HTML documents not open in Chromium
----------------------------------------------------------------------------

                 Key: TIKA-725
                 URL: https://issues.apache.org/jira/browse/TIKA-725
             Project: Tika
          Issue Type: Bug
          Components: general
    Affects Versions: 0.9
         Environment: Chromium 12 on Ubuntu Linux
            Reporter: Henri Bergius
            Priority: Minor


Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.

Switching it to <title></title> fixes this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TIKA-725) Empty title element makes Tika-generated HTML documents not open in Chromium

Posted by "Henri Bergius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108471#comment-13108471 ] 

Henri Bergius commented on TIKA-725:
------------------------------------

Feel free to move the bug around. Anyway, this is the result I get when I run

$ java -jar tika-app-0.9.jar -x somefile.xls > somefile.html

...and then try to open it in a browser. So even if it is a Tika dependency doing this, it is still something that is bundled into the release versions.


> Empty title element makes Tika-generated HTML documents not open in Chromium
> ----------------------------------------------------------------------------
>
>                 Key: TIKA-725
>                 URL: https://issues.apache.org/jira/browse/TIKA-725
>             Project: Tika
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.9
>         Environment: Chromium 12 on Ubuntu Linux
>            Reporter: Henri Bergius
>            Priority: Minor
>              Labels: html
>
> Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.
> Switching it to <title></title> fixes this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TIKA-725) Empty title element makes Tika-generated HTML documents not open in Chromium

Posted by "Nick Burch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108465#comment-13108465 ] 

Nick Burch commented on TIKA-725:
---------------------------------

Isn't this a serializer issue rather than a Tika one?

> Empty title element makes Tika-generated HTML documents not open in Chromium
> ----------------------------------------------------------------------------
>
>                 Key: TIKA-725
>                 URL: https://issues.apache.org/jira/browse/TIKA-725
>             Project: Tika
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.9
>         Environment: Chromium 12 on Ubuntu Linux
>            Reporter: Henri Bergius
>            Priority: Minor
>              Labels: html
>
> Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.
> Switching it to <title></title> fixes this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TIKA-725) Empty title element makes Tika-generated HTML documents not open in Chromium

Posted by "Kostya Gribov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443824#comment-13443824 ] 

Kostya Gribov commented on TIKA-725:
------------------------------------

Please reopen this or link it to TIKA-895. Bug can be reproduced with different document types in tika 1.1 and 1.2.
                
> Empty title element makes Tika-generated HTML documents not open in Chromium
> ----------------------------------------------------------------------------
>
>                 Key: TIKA-725
>                 URL: https://issues.apache.org/jira/browse/TIKA-725
>             Project: Tika
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.9
>         Environment: Chromium 12 on Ubuntu Linux
>            Reporter: Henri Bergius
>            Assignee: Jukka Zitting
>            Priority: Minor
>              Labels: html
>             Fix For: 0.10
>
>
> Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.
> Switching it to <title></title> fixes this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (TIKA-725) Empty title element makes Tika-generated HTML documents not open in Chromium

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

Jukka Zitting resolved TIKA-725.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10
         Assignee: Jukka Zitting

Hmm, good point. The XML serializer will output <title/> when no characters() events come between the start and end tags and <title></title> when there's an empty characers() event in between. This distinction shouldn't make much difference to clients, but since it apparently does for Chromium, I guess it's best if we work around the issue.

Thus, I fixed this in revision 1173050 by explicitly emitting an empty characters() event inside <title> when no title string is available.

> Empty title element makes Tika-generated HTML documents not open in Chromium
> ----------------------------------------------------------------------------
>
>                 Key: TIKA-725
>                 URL: https://issues.apache.org/jira/browse/TIKA-725
>             Project: Tika
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.9
>         Environment: Chromium 12 on Ubuntu Linux
>            Reporter: Henri Bergius
>            Assignee: Jukka Zitting
>            Priority: Minor
>              Labels: html
>             Fix For: 0.10
>
>
> Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.
> Switching it to <title></title> fixes this.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira