{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/25006","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/25006/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/25006/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/25006/events","html_url":"https://github.com/owncloud/core/issues/25006","id":158922806,"number":25006,"title":"GDrive file missing size when content doesn't match mime type","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_external","name":"app:files_external","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/62","html_url":"https://github.com/owncloud/core/milestones/9.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/62/labels","id":1322460,"number":62,"title":"9.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":654,"closed_issues":983,"state":"open","created_at":"2015-09-24T16:30:14Z","updated_at":"2016-06-07T15:41:51Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-06-07T13:28:00Z","updated_at":"2016-06-07T15:53:57Z","closed_at":null,"body":"### Steps\r\n\r\n1. Create a local \"test.txt\" file but put valid XML content inside\r\n1. Setup a GDrive mount as \"/gdrive\"\r\n1. Start \"cadaver\" or any webdav client\r\n1. Upload the \"test.txt\" file with ownCloud to \"/gdrive/test.txt\" with cadaver\r\n1. Do a `ls` in cadaver to check the file size\r\n\r\n### Expected result\r\nFile size is correct\r\n\r\n### Actual result\r\nFile size is -2 / unknown.\r\n\r\nThis is because there is a check whether \"current mimetype\" != \"mimetype as returned by GDrive\" which is used to detect whether it's a magic google doc file for which no size can be retrieved.\r\nUnfortunately GDrive returns \"application/xml\" which doesn't match the \"text/plain\" mime type, causing this logic to kick in.\r\n\r\n### Versions\r\nObserved on 9.1 / master 46fe2ddf2e7a4413586095143521684a0377daad\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/224325608","html_url":"https://github.com/owncloud/core/issues/25006#issuecomment-224325608","issue_url":"https://api.github.com/repos/owncloud/core/issues/25006","id":224325608,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T15:53:57Z","updated_at":"2016-06-07T15:53:57Z","body":"Looks like the code in question existed already in 8.0.6 but didn't trigger at all.\r\n\r\nIt is likely that this is a regression from d38b71f20602268856c7cd2ce5c773ed4f41d64b where the extension based mime type detection was introduced, which doesn't match the one from GDrive any more."}}
{"actor":{"display_login":"PVince81"}}