go-shiori/shiori

Hashes on integrity attribute on archives are broken

alexandru0-dev opened this issue · 0 comments

Data

  • Shiori version: 1.5.4
  • Database Engine: sqlite
  • Operating system: NixOs
  • CLI/Web interface/Web Extension: 1.5.4 (served web-ui)

Describe the bug / actual behavior

When viewing the archived page, if the original webpage has an integrity attribute, the calculated hash is different from the hash of the original webpage, resulting in a missing resource.

Expected behavior / Possible Solution

Either replace the hash with the calculated one or remove the integrity attribute completely.

To Reproduce

Steps to reproduce the behavior:

  1. Add a link like: https://www.cloudhypervisor.org/
  2. Create archive for the link
  3. Open the archive page