{"action":"created","issue":{"url":"https://api.github.com/repos/mar10/wsgidav/issues/112","repository_url":"https://api.github.com/repos/mar10/wsgidav","labels_url":"https://api.github.com/repos/mar10/wsgidav/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/mar10/wsgidav/issues/112/comments","events_url":"https://api.github.com/repos/mar10/wsgidav/issues/112/events","html_url":"https://github.com/mar10/wsgidav/issues/112","id":332445674,"node_id":"MDU6SXNzdWUzMzI0NDU2NzQ=","number":112,"title":"Last modified timestamp not preserved in Windows","user":{"login":"nsymms","id":9939843,"node_id":"MDQ6VXNlcjk5Mzk4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/9939843?v=4","gravatar_id":"","url":"https://api.github.com/users/nsymms","html_url":"https://github.com/nsymms","followers_url":"https://api.github.com/users/nsymms/followers","following_url":"https://api.github.com/users/nsymms/following{/other_user}","gists_url":"https://api.github.com/users/nsymms/gists{/gist_id}","starred_url":"https://api.github.com/users/nsymms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsymms/subscriptions","organizations_url":"https://api.github.com/users/nsymms/orgs","repos_url":"https://api.github.com/users/nsymms/repos","events_url":"https://api.github.com/users/nsymms/events{/privacy}","received_events_url":"https://api.github.com/users/nsymms/received_events","type":"User","site_admin":false},"labels":[{"id":71774699,"node_id":"MDU6TGFiZWw3MTc3NDY5OQ==","url":"https://api.github.com/repos/mar10/wsgidav/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":965143257,"node_id":"MDU6TGFiZWw5NjUxNDMyNTc=","url":"https://api.github.com/repos/mar10/wsgidav/labels/fs-provider","name":"fs-provider","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-06-14T15:10:48Z","updated_at":"2018-06-20T19:09:10Z","closed_at":null,"author_association":"NONE","body":"I can't find any other comments on this, so I have to assume it's unique to my setup or it's by design and I missed it in the documentation somewhere.\r\n\r\nI'm using Windows 10 with Python 3.6.5, wsgidav 2.4.0.\r\nWhen I run `wsgidav --host=0.0.0.0 --port=8080 --root=c:\\users\\my_user` :\r\n\r\nI can connect to the share without problems, view and download files without problems. But when I upload a file to the webdav share (I use drag-drop), it gets a new timestamp of \"now\". Strangely the new file initially shows its original timestamp, but a refresh (F5) will show the new \"now\" timestamp.\r\n\r\nIs this by design? It's hard for me to believe that it is because it makes any sort of file sync impossible.\r\n\r\nNB: I also see this same behavior in SeaFile, which uses the wsgidav library.\r\n\r\nEdit: I also tried using a config file and setting `mutable_live_props = [\"{DAV:}getlastmodified\"]` which didn't help. So I'm guessing this it's the client not setting \"lastmodified\" after the upload?"},"comment":{"url":"https://api.github.com/repos/mar10/wsgidav/issues/comments/398863104","html_url":"https://github.com/mar10/wsgidav/issues/112#issuecomment-398863104","issue_url":"https://api.github.com/repos/mar10/wsgidav/issues/112","id":398863104,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODg2MzEwNA==","user":{"login":"nsymms","id":9939843,"node_id":"MDQ6VXNlcjk5Mzk4NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/9939843?v=4","gravatar_id":"","url":"https://api.github.com/users/nsymms","html_url":"https://github.com/nsymms","followers_url":"https://api.github.com/users/nsymms/followers","following_url":"https://api.github.com/users/nsymms/following{/other_user}","gists_url":"https://api.github.com/users/nsymms/gists{/gist_id}","starred_url":"https://api.github.com/users/nsymms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsymms/subscriptions","organizations_url":"https://api.github.com/users/nsymms/orgs","repos_url":"https://api.github.com/users/nsymms/repos","events_url":"https://api.github.com/users/nsymms/events{/privacy}","received_events_url":"https://api.github.com/users/nsymms/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T19:09:10Z","updated_at":"2018-06-20T19:09:10Z","author_association":"NONE","body":"Yes, the minimal approach is to simply translate a PROPPATCH of Win32LastModifiedTime into a PROPPATCH of {DAV:}getlastmodified. Code already exists to handle `getlastmodified`. The other 3 Win32 properties can be ignored, returning an OK response for them so that the whole PROPPATCH request succeeds.\r\n\r\nI've tested this approach with Windows 10 and it seems to work well. For PROPFIND, the client simply uses `getlastmodified` in lieu of Win32LastModifiedTime.\r\n\r\nThere are some issues with Win7 that I'm looking at. It has an older WebDAV client with other problems.\r\n"}}
{"actor":{"display_login":"nsymms"}}