Sebastian Nagel created NUTCH-3251:
--------------------------------------

             Summary: CaseInsensitiveMetadata serialized and deserialized as 
Metadata is not case-insensitive anymore
                 Key: NUTCH-3251
                 URL: https://issues.apache.org/jira/browse/NUTCH-3251
             Project: Nutch
          Issue Type: Bug
    Affects Versions: 1.23
            Reporter: Sebastian Nagel
             Fix For: 1.24


(seen while testing / reproducing NUTCH-3249, relates to NUTCH-3122)

HTTP headers are case-insensitive and must be matched accordingly ignoring 
case. This is ensured by using the class CaseInsensitiveMetadata or 
SpellcheckedMetadata. Serialization of Metdata preserves the case of the names.

However, when metadata is serialized in a segment and again deserialized, the 
Metadata class is used and no case-insensitive metadata look-ups are guaranteed.

One solution which would also work for already serialized data: use 
CaseInsensitiveMetadata for deserialized data containing HTTP headers. It needs 
to be used whenever metadata from HTTP headers is deserialized, for example, in 
content metadata.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to