{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/client/issues/2792","labels_url":"https://api.github.com/repos/owncloud/client/issues/2792/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/client/issues/2792/comments","events_url":"https://api.github.com/repos/owncloud/client/issues/2792/events","html_url":"https://github.com/owncloud/client/issues/2792","id":56923616,"number":2792,"title":"Windows XP Client: shortcut file (extension .lnk) has wrong size/corrupted","user":{"login":"nekoal","id":10899904,"avatar_url":"https://avatars.githubusercontent.com/u/10899904?v=3","gravatar_id":"","url":"https://api.github.com/users/nekoal","html_url":"https://github.com/nekoal","followers_url":"https://api.github.com/users/nekoal/followers","following_url":"https://api.github.com/users/nekoal/following{/other_user}","gists_url":"https://api.github.com/users/nekoal/gists{/gist_id}","starred_url":"https://api.github.com/users/nekoal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekoal/subscriptions","organizations_url":"https://api.github.com/users/nekoal/orgs","repos_url":"https://api.github.com/users/nekoal/repos","events_url":"https://api.github.com/users/nekoal/events{/privacy}","received_events_url":"https://api.github.com/users/nekoal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/client/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/client/labels/gold-ticket","name":"gold-ticket","color":"FFD700"},{"url":"https://api.github.com/repos/owncloud/client/labels/Needs%20info","name":"Needs info","color":"0b02e1"},{"url":"https://api.github.com/repos/owncloud/client/labels/ReadyToTest","name":"ReadyToTest","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"ckamm","id":833306,"avatar_url":"https://avatars.githubusercontent.com/u/833306?v=3","gravatar_id":"","url":"https://api.github.com/users/ckamm","html_url":"https://github.com/ckamm","followers_url":"https://api.github.com/users/ckamm/followers","following_url":"https://api.github.com/users/ckamm/following{/other_user}","gists_url":"https://api.github.com/users/ckamm/gists{/gist_id}","starred_url":"https://api.github.com/users/ckamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckamm/subscriptions","organizations_url":"https://api.github.com/users/ckamm/orgs","repos_url":"https://api.github.com/users/ckamm/repos","events_url":"https://api.github.com/users/ckamm/events{/privacy}","received_events_url":"https://api.github.com/users/ckamm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/client/milestones/12","labels_url":"https://api.github.com/repos/owncloud/client/milestones/12/labels","id":518706,"number":12,"title":"1.8 - UI Enhancements","description":"","creator":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":97,"state":"open","created_at":"2013-12-20T19:27:10Z","updated_at":"2015-02-13T08:23:50Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-02-07T19:57:06Z","updated_at":"2015-02-13T08:27:01Z","closed_at":null,"body":"### Expected behaviour\r\nShortcut files (extension .lnk) syncronized without checking its contents as others files.\r\nOr\r\nShortcut files excludes from syncronization.\r\n\r\n### Actual behaviour\r\nActivity log shows size of object, not size of shortcut file. This cause shortcut to folders has 0 bytes and corrupted on server. Shortcut with cyrillic characters in filename detects as missed/changed on server and syncronized again and again.\r\n\r\n### Steps to reproduce\r\n1. Create shortcut for folder/file with standart Windows ways and place in sync folder. Watch size of shortcut.\r\n2. Wait for syncronization. In activity log watch size of chortcut.\r\n3. Shortcut with cyrillic characters in filename syncronized again and again.\r\n4. When downloads folder shortcut from server it has zero size and not exist in desctination folder.\r\nShortcut with cyrillic characters in filename normally downloads.\r\n\r\n### Server configuration\r\nOperating system: Windows XP SP3\r\n\r\nWeb server: Apache 2.0 \r\n\r\nDatabase: MySQL\r\n\r\nPHP version: 5.3.5\r\n\r\nownCloud version: 7.0.4\r\n\r\nStorage backend: NTFS\r\n\r\n### Client configuration\r\nClient version: 1.8.0-nigntly20150205\r\n\r\nOperating system: Windows XP SP3\r\n\r\nOS language: Russian\r\n\r\nInstallation path of client: D:\\Program Files\\ownCloud\r\n\r\n### Logs\r\n2. Apache error log has no records at this time.\r\n1. Output of `owncloud --logwindow`:\r\n3. ownCloud log (data/owncloud.log):\r\n\r\nFolder shortcut:\r\n\r\n02-08 04:33:49:746 0x60afb1c csync_ftw: Uniq ID from Database: Trav.lnk -> 54d6460436061\r\n02-08 04:33:49:746 0x60afb1c csync_walker: file: E:\\dbases/Trav.lnk [inode=36961 size=388]\r\n02-08 04:33:49:746 0x60afb1c _csync_detect_update: Database entry found, compare: 1382081681 <-> 1382081681, etag: 54d6460436061 <-> 54d6460436061, inode: 36961 <-> 36961, size: 388 <-> 0, perms:  <-> RDNVW\r\n02-08 04:33:49:746 0x60afb1c _csync_detect_update: file: Trav.lnk, instruction: INSTRUCTION_NONE <<=\r\n\r\n{\"reqId\":\"54d6460437a3b\",\"app\":\"OC\\\\Files\\\\Cache\\\\Scanner\",\"message\":\"!!! No reuse of etag for 'files\\/dbases\\/Trav.lnk' !!! \\ncache: Array\\n(\\n    [fileid] => 67\\n    [storage] => home::bertix\\n    [path] => files\\/dbases\\/Trav.lnk\\n    [parent] => 33\\n    [name] => Trav.lnk\\n    [mimetype] => application\\/octet-stream\\n    [mimepart] => application\\n    [size] => 0\\n    [mtime] => 1423328771\\n    [storage_mtime] => 1423328771\\n    [encrypted] => \\n    [unencrypted_size] => 0\\n    [etag] => 54d64603ea2e7\\n    [permissions] => 27\\n)\\n \\ndata: Array\\n(\\n    [mimetype] => application\\/octet-stream\\n    [mtime] => 1382081681\\n    [size] => 0\\n    [etag] => 54d6460436061\\n    [storage_mtime] => 1382081681\\n    [permissions] => 27\\n    [parent] => 33\\n)\\n\",\"level\":0,\"time\":\"2015-02-07T17:06:12+00:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/dbases\\/Trav.lnk\"}\r\n\r\nFile shortcut:\r\n\r\n02-08 04:33:49:809 0x60afb1c csync_ftw: Uniq ID from Database: - ODBC.lnk -> 54d67682ac06f\r\n02-08 04:33:49:809 0x60afb1c csync_walker: file: E:\\dbases/- ODBC.lnk [inode=36988 size=1578]\r\n02-08 04:33:49:809 0x60afb1c _csync_detect_update: Database entry found, compare: 1274707019 <-> 1274707019, etag: 54d67682ac06f <-> 54d67682ac06f, inode: 36988 <-> 36988, size: 1578 <-> 53248, perms:  <-> RDNVCK\r\n02-08 04:33:49:809 0x60afb1c _csync_detect_update: file: Источники ODBC.lnk, instruction: INSTRUCTION_EVAL <<=\r\n\r\n{\"reqId\":\"54d674a4a26ab\",\"app\":\"OC\\\\Files\\\\Cache\\\\Scanner\",\"message\":\"!!! No reuse of etag for 'files\\/dbases\\/\\u0418\\u0441\\u0442\\u043e\\u0447\\u043d\\u0438\\u043a\\u0438 ODBC.lnk' !!! \\ncache: Array\\n(\\n    [fileid] => 364\\n    [storage] => home::bertix\\n    [path] => files\\/dbases\\/\\u0418\\u0441\\u0442\\u043e\\u0447\\u043d\\u0438\\u043a\\u0438 ODBC.lnk\\n    [parent] => 33\\n    [name] => \\u0418\\u0441\\u0442\\u043e\\u0447\\u043d\\u0438\\u043a\\u0438 ODBC.lnk\\n    [mimetype] => application\\/octet-stream\\n    [mimepart] => application\\n    [size] => 1578\\n    [mtime] => 1274707019\\n    [storage_mtime] => 1274707019\\n    [encrypted] => \\n    [unencrypted_size] => 0\\n    [etag] => 54d674659cc4a\\n    [permissions] => 27\\n)\\n \\ndata: Array\\n(\\n    [mimetype] => application\\/octet-stream\\n    [mtime] => 1423340708\\n    [size] => 1578\\n    [etag] => 54d674a4a05f3\\n    [storage_mtime] => 1423340708\\n    [permissions] => 27\\n    [parent] => 33\\n)\\n\",\"level\":0,\"time\":\"2015-02-07T20:25:08+00:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/dbases\\/%D0%98%D1%81%D1%82%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%D0%B8%20ODBC.lnk\"}\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/client/issues/comments/74220194","html_url":"https://github.com/owncloud/client/issues/2792#issuecomment-74220194","issue_url":"https://api.github.com/repos/owncloud/client/issues/2792","id":74220194,"user":{"login":"ckamm","id":833306,"avatar_url":"https://avatars.githubusercontent.com/u/833306?v=3","gravatar_id":"","url":"https://api.github.com/users/ckamm","html_url":"https://github.com/ckamm","followers_url":"https://api.github.com/users/ckamm/followers","following_url":"https://api.github.com/users/ckamm/following{/other_user}","gists_url":"https://api.github.com/users/ckamm/gists{/gist_id}","starred_url":"https://api.github.com/users/ckamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckamm/subscriptions","organizations_url":"https://api.github.com/users/ckamm/orgs","repos_url":"https://api.github.com/users/ckamm/repos","events_url":"https://api.github.com/users/ckamm/events{/privacy}","received_events_url":"https://api.github.com/users/ckamm/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T08:27:01Z","updated_at":"2015-02-13T08:27:01Z","body":"@nekoal I tried these two cases and could not find any issues:\r\n\r\nCase 1:\r\n* Put a shortcut file into a sync folder\r\n* Wait for it to upload, then disable the client\r\n* Manually upload a different shortcut file to the server\r\n* Change the local shortcut file in a different way\r\n* Start the client again\r\n* Result: conflict file, as expected\r\n\r\nCase 2:\r\n* Put a shortcut file into a sync folder\r\n* Wait for it to upload\r\n* Delete it from the server\r\n* Result: shortcut is deleted locally\r\n\r\nCould you describe how to reproduce your issues in detail?\r\n\r\nThe other file types you mentioned should not be a problem because Qt does not treat them in a special way."}}