David Pilato created TIKA-4774:
----------------------------------
Summary: Metadata name encondig
Key: TIKA-4774
URL: https://issues.apache.org/jira/browse/TIKA-4774
Project: Tika
Issue Type: Bug
Affects Versions: 4.0.0
Reporter: David Pilato
Attachments: test.html
I'm trying to move FSCrawler to Tika 4.0.0-beta-1 to check if everything looks
good on my side.
While running some unit tests, I found that the metadata name encoding might be
wrong (or I need to fix this on my side and I don't know it yet ;) )
{{java.lang.AssertionError: }}
{{Expecting map:}}
{{ \{"Content-Encoding"="x-MacRoman", "Content-Location"="Web%20page",
"Content-Type"="text/html; charset=x-MacRoman", "Content-Type-Hint"="text/html;
charset=macintosh", "Content-Type-Magic-Detected"="text/html",
"X-TIKA:Parsed-By"="org.apache.tika.parser.DefaultParser",
"X-TIKA:Parsed-By-Full-Set"="org.apache.tika.parser.DefaultParser",
"X-TIKA:detectedEncoding"="x-MacRoman",
"X-TIKA:encodingDetectionTrace"="HtmlEncodingDetector->x-MacRoman[DECLARATIVE],
MojibusterEncodingDetector->UTF-8[STRUCTURAL]
[junk-filter-prefer-declarative]",
"X-TIKA:encodingDetector"="HtmlEncodingDetector",
"X-TIKA:resourceName"="test.html", "dc:title"="Test Tika title",
"html:Generator"="Microsoft Word 15", "html:Mots clés"="keyword1, keyword2",
"html:Originator"="Microsoft Word 15", "html:ProgId"="Word.Document",
"html:Titre"="Test Tika title"}}}
{{to contain entries:}}
{{ ["html:Mots clés"="keyword1, keyword2"]}}
{{but could not find the following map entries:}}
{{ ["html:Mots clés"="keyword1, keyword2"]}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)