Skip to content

Fix bogus mimetype values detection in the mimetype indexer implementation

As explained in the parent task, the current mimetype implementation use file and parses the results. It's opened to implementation bug.

Migrate away from file and use the already package python3-magic implementation. This should get rid of those errors altogether.

Impacts:

  • swh-storage: to add the new indexer configuration in the db
  • swh-indexer: packaging + implementation

Migrated from T849 (view on Phabricator)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information