mailarchive icon indicating copy to clipboard operation
mailarchive copied to clipboard

Message display fails for text_html message

Open ietf-svn-bot opened this issue 3 years ago • 2 comments

owner:[email protected] type_defect | by [email protected]


See: https://mailarchive.ietf.org/arch/msg/manycouches/jod_GNssqhzsyQcuWTIjjQYufzA/


Issue migrated from trac:3428 at 2022-03-03 15:58:57 +0000

ietf-svn-bot avatar Oct 19 '21 22:10 ietf-svn-bot

@[email protected] commented


Scroll to bottom to see: --- Begin Message --- << invalid HTML >> --- End Message ---

This appears to be an issue with handling a message/rfc822 part, where the content is an XML document with encoding='UTF-8'.

A ValueError is thrown here: https://trac.ietf.org/trac/ietfdb/browser/mailarch/trunk/backend/mlarchive/archive/generator.py#L273

ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

If the payload is passed to clean without first going through _get_decoded_payload() no error is thrown.

ietf-svn-bot avatar Oct 21 '21 18:10 ietf-svn-bot

@[email protected] changed _comment0 which not transferred by tractive

ietf-svn-bot avatar Oct 21 '21 18:10 ietf-svn-bot