You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ken Krugler (Created) (JIRA)" <ji...@apache.org> on 2012/03/07 20:28:56 UTC

[jira] [Created] (TIKA-869) IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name

IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name
-----------------------------------------------------------------------------

                 Key: TIKA-869
                 URL: https://issues.apache.org/jira/browse/TIKA-869
             Project: Tika
          Issue Type: Bug
            Reporter: Ken Krugler
            Assignee: Ken Krugler


Currently IdentityHtmlMapper.mapSafeElement(String name) just returns name as-is. This makes the XHTMLContentHandler think that it hasn't received a <body> tag, since it assumes input is lower-cased. So you get output that looks like:

<body><BODY/></body></html>

The solution is a trivial change to lower-case the incoming name, the same as what the mapSafeAttribute() method is already doing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TIKA-869) IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name

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

Ken Krugler resolved TIKA-869.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

r1371504
                
> IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name
> -----------------------------------------------------------------------------
>
>                 Key: TIKA-869
>                 URL: https://issues.apache.org/jira/browse/TIKA-869
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Ken Krugler
>            Assignee: Ken Krugler
>             Fix For: 1.3
>
>         Attachments: TIKA-869.patch
>
>
> Currently IdentityHtmlMapper.mapSafeElement(String name) just returns name as-is. This makes the XHTMLContentHandler think that it hasn't received a <body> tag, since it assumes input is lower-cased. So you get output that looks like:
> <body><BODY/></body></html>
> The solution is a trivial change to lower-case the incoming name, the same as what the mapSafeAttribute() method is already doing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-869) IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name

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

Chris A. Mattmann updated TIKA-869:
-----------------------------------

    Component/s: parser
    
> IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name
> -----------------------------------------------------------------------------
>
>                 Key: TIKA-869
>                 URL: https://issues.apache.org/jira/browse/TIKA-869
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>            Reporter: Ken Krugler
>            Assignee: Ken Krugler
>         Attachments: TIKA-869.patch
>
>
> Currently IdentityHtmlMapper.mapSafeElement(String name) just returns name as-is. This makes the XHTMLContentHandler think that it hasn't received a <body> tag, since it assumes input is lower-cased. So you get output that looks like:
> <body><BODY/></body></html>
> The solution is a trivial change to lower-case the incoming name, the same as what the mapSafeAttribute() method is already doing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-869) IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name

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

Ken Krugler updated TIKA-869:
-----------------------------

    Attachment: TIKA-869.patch
    
> IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name
> -----------------------------------------------------------------------------
>
>                 Key: TIKA-869
>                 URL: https://issues.apache.org/jira/browse/TIKA-869
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Ken Krugler
>            Assignee: Ken Krugler
>         Attachments: TIKA-869.patch
>
>
> Currently IdentityHtmlMapper.mapSafeElement(String name) just returns name as-is. This makes the XHTMLContentHandler think that it hasn't received a <body> tag, since it assumes input is lower-cased. So you get output that looks like:
> <body><BODY/></body></html>
> The solution is a trivial change to lower-case the incoming name, the same as what the mapSafeAttribute() method is already doing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira