Page MenuHomeSoftware Heritage

"Content with mime type text/plain can not be displayed."
Closed, MigratedEdits Locked

Description

When viewing https://archive.softwareheritage.org/browse/origin/https://gitlab.inria.fr/vpadois/ias-padois-et-al.git/content/ias_state_of_art.bib/ , the content is replaced by this error: "Content with mime type text/plain can not be displayed."

Event Timeline

vlorentz created this task.

Hopefully, the text/plain mimetype files are usually correctly displayed (see this file for instance).

Here the error comes from the fact that libmagic erroneously detected the file as binary.

file --mime-type --mime-encoding ~/Téléchargements/ias_state_of_art.bib 
/home/antoine/Téléchargements/ias_state_of_art.bib: application/octet-stream; charset=binary

The real problem here is the displayed error message in the webapp and it should be improved.

Sounds like a bug in libmagic, this file is valid UTF-8.

Submitted to libmagic: https://bugs.astron.com/view.php?id=123

We should still fix the error message, though.

Ack. I will change the task priority to normal as it is not a critical issue.

anlambert lowered the priority of this task from High to Normal.Nov 13 2019, 5:08 PM