Steps to reproduce
- Upload a file foo.bar
- Copy resources/config/mimetypemapping.dist.json to config/mimetypemapping.json
- Add the following entry to mimetypemapping.json:
"bar": ["application/bar"]
- Run php occ maintenance:mimetype:update-db --repair-filecache
Expected behaviour
The mimetype column in oc_filecache for the file foo.bar should be updated with the new mimetype foreignkey
Actual behaviour
- New record
application/bar will be created in oc_mimetypes
- The mimetype column in the table
oc_filecache for foo.bar won't be updated