{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18742","labels_url":"https://api.github.com/repos/owncloud/core/issues/18742/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18742/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18742/events","html_url":"https://github.com/owncloud/core/pull/18742","id":104270892,"number":18742,"title":"Introduce mimetype DB update occ command","user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":626,"closed_issues":617,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-09-05T06:21:17Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-09-01T13:48:30Z","updated_at":"2015-09-06T14:56:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/18742","html_url":"https://github.com/owncloud/core/pull/18742","diff_url":"https://github.com/owncloud/core/pull/18742.diff","patch_url":"https://github.com/owncloud/core/pull/18742.patch"},"body":"This occ command allows mimetypes in the database to be updated from changed mimetypes in config/mimetypemapping.json. By default, it adds any new mimetypes it finds and updates the filecache based on those, but with an option it can scan all existing mimetypes to update mimetypes on files.\r\n\r\nFor example, you add a new mapping of '.foo' to 'application/foobar', but your existing '.foo' files still have the 'application/octet-stream' mimetype since they were uploaded before. Run `./occ maintenance:mimetype:update-db` to update this. Or, if the 'application/foobar' mimetype already existed, `./occ maintenance:mimetype:update-db --repair-filecache` (will be a lot slower for big filecaches!).\r\n\r\nPlease review @rullzer @icewind1991 @MorrisJobke @PVince81 @icewind1991 @DeepDiver1975 \r\n\r\ncc @carlaschroder for documentation around the new occ command, and rename of the maintenance:mimetypesjs command to maintenance:mimetype:update-js\r\n\r\nFixes #17625"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/138091280","html_url":"https://github.com/owncloud/core/pull/18742#issuecomment-138091280","issue_url":"https://api.github.com/repos/owncloud/core/issues/18742","id":138091280,"user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T14:56:26Z","updated_at":"2015-09-06T14:56:26Z","body":"Looks good and everything seems to work. :+1: \r\nThanks for the tests :)"}}