{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/36","repository_url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere","labels_url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/36/comments","events_url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/36/events","html_url":"https://github.com/Microsoft/team-explorer-everywhere/pull/36","id":143278150,"number":36,"title":"Fix crash when sharing Linux workstation","user":{"login":"olivierdagenais","id":297515,"avatar_url":"https://avatars.githubusercontent.com/u/297515?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierdagenais","html_url":"https://github.com/olivierdagenais","followers_url":"https://api.github.com/users/olivierdagenais/followers","following_url":"https://api.github.com/users/olivierdagenais/following{/other_user}","gists_url":"https://api.github.com/users/olivierdagenais/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierdagenais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierdagenais/subscriptions","organizations_url":"https://api.github.com/users/olivierdagenais/orgs","repos_url":"https://api.github.com/users/olivierdagenais/repos","events_url":"https://api.github.com/users/olivierdagenais/events{/privacy}","received_events_url":"https://api.github.com/users/olivierdagenais/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T15:31:31Z","updated_at":"2016-03-24T15:31:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/pulls/36","html_url":"https://github.com/Microsoft/team-explorer-everywhere/pull/36","diff_url":"https://github.com/Microsoft/team-explorer-everywhere/pull/36.diff","patch_url":"https://github.com/Microsoft/team-explorer-everywhere/pull/36.patch"},"body":"## Summary\r\n\r\nThis fixes an issue that was mostly noticed on Linux, with both the TEE CLC or the Eclipse plugin, when more than one user is involved.  Examples:\r\n\r\n* [TFS Command Line Client crashes in Linux](https://social.msdn.microsoft.com/Forums/vstudio/en-US/37561345-25d0-4bd9-8d3d-40531c7c117a/tfs-command-line-client-crashes-in-linux?forum=tee)\r\n* [tf command is not running on Centos 7](https://social.msdn.microsoft.com/Forums/vstudio/en-US/cfec6f9b-e0b5-4231-96a1-40fa58167afc/tf-command-is-not-running-on-centos-7?forum=tee)\r\n* [Team foundtaion server plugin eclipse - multiple users on ubuntu](https://social.msdn.microsoft.com/Forums/vstudio/en-US/541f70c1-92b6-4903-9a07-48dcfe186fc2/team-foundtaion-server-plugin-eclipse-multiple-users-on-ubuntu?forum=tee)\r\n\r\n## Implementation details\r\n\r\nUntil pull request Microsoft/ApplicationInsights-Java#279 is merged and Microsoft/ApplicationInsights-Java is released, this pull request introduces the `0.9.5.1` custom version of `applicationinsights-core`, which was built from the [v0.9.5 tag](https://github.com/Microsoft/ApplicationInsights-Java/commit/6ec7a748f229942b3fa0892d5043da23594d3ee8) plus the changes in Microsoft/ApplicationInsights-Java#279.\r\n\r\n### How version 0.9.5.1 was built\r\n\r\nIn the Microsoft/ApplicationInsights-Java clone, using Cygwin:\r\n\r\n1. Create the [fix_shared_tmpdir_0.9.5](https://github.com/olivierdagenais/ApplicationInsights-Java/commits/fix_shared_tmpdir_0.9.5) branch:\r\n\r\n    ```\r\n    git checkout -b fix_shared_tmpdir_0.9.5 v0.9.5\r\n    ```\r\n2. Cherry-pick the changes from the `fix_shared_tmpdir` branch:\r\n\r\n    ```\r\n    git cp f4569e3\r\n    git cp ee94205\r\n    git cp 57f9d82\r\n    git cp 269f78e\r\n    git cp f468c0e\r\n    git cp f57700f\r\n    git cp b52975f\r\n    git cp e16360e\r\n    ```\r\n3. Update version to 0.9.5.1 via commit Microsoft/ApplicationInsights-Java@392d56edd6407d81eb88ea1256a8206c7144fe10\r\n4. Augment release notes via commit Microsoft/ApplicationInsights-Java@06eaba0bd674af14dc0dc14781e4e97eca5ad9aa\r\n5. Configure to use JDK 1.6.0u45:\r\n\r\n    ```\r\n    export JAVA_JRE_6=e:/Software/Java/6/jdk1.6.0_45/jre\r\n    ```\r\n6. Rebuild.  The JAR we want will be under `core/build/libs`.\r\n\r\n    ```\r\n    ./gradlew clean testAndCollect -DisRelease=true\r\n    ```\r\n7. Because I used Cygwin, the Windows DLLs were not compiled.  What I did, instead, was extract them from the official 0.9.5 release JAR and inserted them into our custom 0.9.5.1 JAR.\r\n\r\n\r\n## Manual testing\r\n\r\n1. Rebuild TEE:\r\n\r\n    ```\r\n    cd build\r\n    /cygdrive/c/dev/apache-ant-1.9.6/bin/ant -Ddir.machine.build-runtime=c:/users/olivida/dev/eclipseTargets/352/\r\n    cd ..\r\n    ```\r\n2. Copy the contents of `build/output/bin` to a Fedora 22 VM.\r\n3. Install the TEE Eclipse plugin from `eclipseplugin-update-archive/TFSEclipsePlugin-UpdateSiteArchive-14.0.3.zip` into Eclipse Mars.2 (4.5.2) and restart Eclipse.\r\n4. Browsing the `/tmp` folder, I see a sub-folder was created for the current user (`oli`), under which I can find `AppInsights` and `transmissions` sub-folders (both owned by the current user).\r\n5. SSH to the same VM as another user.\r\n6. This time, unzip `clc/TEE-CLC-14.0.3.zip` into the `/tmp` folder.\r\n7. Run `/tmp/TEE-CLC-14.0.3/tf eula` to display the EULA and accept the terms.\r\n8. Run `/tmp/TEE-CLC-14.0.3/tf workspace`.\r\n9. Browsing the `/tmp` folder: I see a sub-folder was created for the second user, under which I can find `AppInsights` and `transmissions` sub-folders (both owned the second user).\r\n10. There are no `AppInsights` and `transmissions` sub-folders in the `/tmp` folder. \r\n\r\nMission accomplished!    \r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/comments/200887885","html_url":"https://github.com/Microsoft/team-explorer-everywhere/pull/36#issuecomment-200887885","issue_url":"https://api.github.com/repos/Microsoft/team-explorer-everywhere/issues/36","id":200887885,"user":{"login":"msftclas","id":9287708,"avatar_url":"https://avatars.githubusercontent.com/u/9287708?v=3","gravatar_id":"","url":"https://api.github.com/users/msftclas","html_url":"https://github.com/msftclas","followers_url":"https://api.github.com/users/msftclas/followers","following_url":"https://api.github.com/users/msftclas/following{/other_user}","gists_url":"https://api.github.com/users/msftclas/gists{/gist_id}","starred_url":"https://api.github.com/users/msftclas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msftclas/subscriptions","organizations_url":"https://api.github.com/users/msftclas/orgs","repos_url":"https://api.github.com/users/msftclas/repos","events_url":"https://api.github.com/users/msftclas/events{/privacy}","received_events_url":"https://api.github.com/users/msftclas/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T15:31:34Z","updated_at":"2016-03-24T15:31:34Z","body":"Hi __@olivierdagenais__, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!\r\n    <p>\r\n        It looks like you're a Microsoft contributor (Oli Dagenais). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.\r\n    </p>\r\n\r\nTTYL, MSBOT;\r\n"}}