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

Markus Jelsma updated TIKA-992:
-------------------------------

    Attachment: TIKA-992-1.3-1.patch

Here's a patch improving the unit test and relies on Metadata.add() in the 
HtmlHandler. The test adds two og:image metadata tags and checks if the 
og:image metadata is multi valued. The test only passes if the HtmlHandler uses 
an add() method.
                
> OpenGraph meta tags to allow multiple values
> --------------------------------------------
>
>                 Key: TIKA-992
>                 URL: https://issues.apache.org/jira/browse/TIKA-992
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Markus Jelsma
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: TIKA-992-1.3-1.patch
>
>
> HtmlHandler should use Metadata.add() for Open Graph properties instead of 
> the HtmlHandler.addHtmlMetadata() method which uses Metadata.set(). The og:* 
> properties can be multivalued. The Metadata.set() method overwrites previous 
> entries because it doesn't use Metadata.appendedValues().

--
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

Reply via email to