{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2050","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2050/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2050/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2050/events","html_url":"https://github.com/syncthing/syncthing/issues/2050","id":94399388,"number":2050,"title":"Adding new folder: Autocompleted path not applied","user":{"login":"dekelund","id":833396,"avatar_url":"https://avatars.githubusercontent.com/u/833396?v=3","gravatar_id":"","url":"https://api.github.com/users/dekelund","html_url":"https://github.com/dekelund","followers_url":"https://api.github.com/users/dekelund/followers","following_url":"https://api.github.com/users/dekelund/following{/other_user}","gists_url":"https://api.github.com/users/dekelund/gists{/gist_id}","starred_url":"https://api.github.com/users/dekelund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dekelund/subscriptions","organizations_url":"https://api.github.com/users/dekelund/orgs","repos_url":"https://api.github.com/users/dekelund/repos","events_url":"https://api.github.com/users/dekelund/events{/privacy}","received_events_url":"https://api.github.com/users/dekelund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T21:40:04Z","updated_at":"2015-07-12T12:06:49Z","closed_at":null,"body":"# Scenario\r\nI was going to add a folder. First I wrote a folder path in the text field, but never finished the configuration. \r\n\r\nLater I reopened the modal window, Safari autocompleted my path based on previous value. I was satisfied, stopped writing and applied the settings. But it was not obvious that only characters written by hand was applied (characters written by Safari was not included in the javascript variable).\r\n\r\nThis is dangerous, it might share files not intended to be shared. This is a common bug shared by other projects, I have seen it before in Safari-AngularJS solutions.\r\n\r\n# Expected behaviour\r\nDirectories provided by autocompleted path should have been used instead of parent or grandparent.\r\n\r\n# Revisions and vendoring\r\nMac OS X Yosmite, syncthing v0.11.13 and Safari v8.0.6\r\n\r\n# Screenshots\r\n<img width=\"885\" alt=\"screen shot 2015-07-10 at 23 24 55\" src=\"https://cloud.githubusercontent.com/assets/833396/8629546/79ef7818-275c-11e5-9c08-74bd370941d0.png\">\r\n<img width=\"550\" alt=\"screen shot 2015-07-10 at 23 25 21\" src=\"https://cloud.githubusercontent.com/assets/833396/8629547/7a15e642-275c-11e5-9218-b388b3362cdf.png\">\r\n\r\n# Poor-mans-solution\r\nIf it's not possible to prohibit, then maybe a alert window should pop-up verifying the most dangerous values before it's applied to the rest of the system."},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/120713811","html_url":"https://github.com/syncthing/syncthing/issues/2050#issuecomment-120713811","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2050","id":120713811,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars.githubusercontent.com/u/1144861?v=3","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T12:06:49Z","updated_at":"2015-07-12T12:06:49Z","body":"I don't think we can do anything here."}}