{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3360","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3360/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3360/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3360/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3360","id":54783354,"number":3360,"title":"Dropbox platform check for Windows","user":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-19T16:21:33Z","updated_at":"2015-01-28T12:11:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3360","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3360","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3360.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3360.patch"},"body":"This PR allows an untested version of Windows to be used for a DropBox server.  If `omero.fs.platformCheck` is set to `False` then on a Windows system the check for the specific platform will be bypassed. This allows an as yet untested version of Windows to be tried at the user's own risk. There is no guarantee DropBox will start up if the version of Windows being used does not support file notifications in the same way as the tested versions.\r\n\r\nThe easiest way to test this PR would be to edit the list at https://github.com/ximenesuk/openmicroscopy/blob/45e049f093462218625a4129806d8703e4e8ce61/components/tools/OmeroFS/src/fsUtil.py#L43 to remove the entry corresponding to the Windows testing platform. By default DropBox should then fail to started. Setting the config `omero.fs.platformCheck` to `False` should then allow DropBox to start with a logged warning in `DropBox.log`.\r\n\r\nThere are five key test cases, two with the default build, three with `dist/lib/omero/fsUtil.py` edited (no rebuild necessary after this edit). In each case the output of DropBox.log needs to be checked.\r\n\r\n1. start server on a tested Windows platform XXX. DropBox should start okay.\r\n2. the config `omero.fs.platformCheck` to `False` , restart server. DropBox should start okay but the log should show that strict checking is disabled.\r\n3. remove relevant entry for XXX from `winTested` in `dist/lib/omero/fsUtil.py`. Leave  the config `omero.fs.platformCheck` set to `False` , restart server.  DropBox should start okay but the log should show that strict checking is disabled and that an untested version of Windows has been detected.\r\n4. unset the config `omero.fs.platformCheck`, restart server. DropBox should fail to start with an appropriate error message in the log.\r\n5.  set the config `omero.fs.platformCheck` to anything other than the exact string `False`, restart server. DropBox should fail to start with an appropriate error message in the log.\r\n\r\nThis PR should not affect the behaviour of DropBox on either Linux or Mac OS.\r\n\r\nPartly\r\n--rebased-to #3361"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/71825606","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3360#issuecomment-71825606","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3360","id":71825606,"user":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T12:11:26Z","updated_at":"2015-01-28T12:11:26Z","body":"Thanks, I think the try/except is just a historical artefact!"}}