alephdata / aleph

Search and browse documents and data; find the people and companies you look for.

Home Page:http://docs.aleph.occrp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: Some web pages don't render

monneyboi opened this issue · comments

Some HTML documents uploaded to Aleph don't render in the GUI. Not all sites seem to be affected by this. A couple examples:

To Reproduce
Steps to reproduce the behavior:

  1. Safe any article from one of the examples
  2. Upload the HTML file in Aleph
  3. Open the HTML file in Aleph
  4. See nothing

Expected behavior
I expect to see a safe render of the HTML document.

Aleph version
This happens in the OCCRP Aleph instance as well in ours. Aleph on our end is 3.15.1

Screenshots
image

Additional context
The problem seems to be caused by the safeHtml property containing broken html content. The bodyHtml property contains the original document.

The PR for this issue has been waiting to be accepted for quite some time now, if that gets merged this bug can be closed.