Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message display fails for text_html message#3428

Open
ietf-svn-bot opened this issue Oct 19, 2021 · 2 comments
Open

Message display fails for text_html message #3428

ietf-svn-bot opened this issue Oct 19, 2021 · 2 comments

Comments

@ietf-svn-bot
Copy link

owner:rcross@amsl.com type_defect | by rcross@amsl.com


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
Copy link
Author

@rcross@amsl.com 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
Copy link
Author

@rcross@amsl.com changed _comment0 which not transferred by tractive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant