{"action":"created","comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/37507571","id":37507571,"diff_hunk":"@@ -855,7 +855,9 @@ public Connector call() throws Exception {\n                 p.name = userName;\n                 p.eventType = \"Sessions\";\n                 ISessionPrx prx = entryEncrypted.getSessionService();\n-                Session session = prx.createSessionWithTimeout(p, 0L);\n+                Session session = prx.getSession(secureClient.getSessionId());\n+                long timeout = session.getTimeToIdle().getValue();\n+                session = prx.createSessionWithTimeout(p, timeout);","path":"components/blitz/src/omero/gateway/Connector.java","position":7,"original_position":7,"commit_id":"9b5f528011d01e6aeb4c9a451e3b69f58615fc6c","original_commit_id":"9b5f528011d01e6aeb4c9a451e3b69f58615fc6c","user":{"login":"sbesson","id":1355463,"avatar_url":"https://avatars.githubusercontent.com/u/1355463?v=3","gravatar_id":"","url":"https://api.github.com/users/sbesson","html_url":"https://github.com/sbesson","followers_url":"https://api.github.com/users/sbesson/followers","following_url":"https://api.github.com/users/sbesson/following{/other_user}","gists_url":"https://api.github.com/users/sbesson/gists{/gist_id}","starred_url":"https://api.github.com/users/sbesson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbesson/subscriptions","organizations_url":"https://api.github.com/users/sbesson/orgs","repos_url":"https://api.github.com/users/sbesson/repos","events_url":"https://api.github.com/users/sbesson/events{/privacy}","received_events_url":"https://api.github.com/users/sbesson/received_events","type":"User","site_admin":false},"body":"This method apparently sets the `timeToLive` and you are setting the `timeToIdle` from the first session, you might want to use [createSessionWithTimeouts(principal, long, long)](http://downloads.openmicroscopy.org/omero/5.1.3/api/ome/services/sessions/SessionBean.html#createSessionWithTimeouts(ome.system.Principal,%20long,%20long)) instead.","created_at":"2015-08-20T08:51:04Z","updated_at":"2015-08-20T08:51:04Z","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4052#discussion_r37507571","pull_request_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052","_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/37507571"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/4052#discussion_r37507571"},"pull_request":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052"}}},"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052","id":42563214,"html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4052","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4052.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4052.patch","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4052","number":4052,"state":"open","locked":false,"title":"sudo sessions timeout","user":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars.githubusercontent.com/u/6575139?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"body":"See Ticket [12972](http://trac.openmicroscopy.org/ome/ticket/12972)\r\nPreviously if a session for another user was created a zero timeout was set, with this PR now the same timeout as the existing session is used.\r\nTest: Code review, check that the import as other user (will initiate a sudo session) still works.","created_at":"2015-08-17T08:11:41Z","updated_at":"2015-08-20T08:51:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"621c9011800f6cc251fbd32d5b451857dcf4348f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052/commits","review_comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052/comments","review_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4052/comments","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/9b5f528011d01e6aeb4c9a451e3b69f58615fc6c","head":{"label":"dominikl:sudo_session_timeout","ref":"sudo_session_timeout","sha":"9b5f528011d01e6aeb4c9a451e3b69f58615fc6c","user":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars.githubusercontent.com/u/6575139?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"repo":{"id":16698231,"name":"openmicroscopy","full_name":"dominikl/openmicroscopy","owner":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars.githubusercontent.com/u/6575139?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominikl/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":true,"url":"https://api.github.com/repos/dominikl/openmicroscopy","forks_url":"https://api.github.com/repos/dominikl/openmicroscopy/forks","keys_url":"https://api.github.com/repos/dominikl/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominikl/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominikl/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/dominikl/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/dominikl/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/dominikl/openmicroscopy/events","assignees_url":"https://api.github.com/repos/dominikl/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/dominikl/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/dominikl/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/dominikl/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominikl/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominikl/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominikl/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominikl/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/dominikl/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/dominikl/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/dominikl/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/dominikl/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/dominikl/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/dominikl/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominikl/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominikl/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominikl/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/dominikl/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/dominikl/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominikl/openmicroscopy/merges","archive_url":"https://api.github.com/repos/dominikl/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominikl/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/dominikl/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/dominikl/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/dominikl/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/dominikl/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominikl/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/dominikl/openmicroscopy/releases{/id}","created_at":"2014-02-10T14:47:13Z","updated_at":"2015-02-06T10:38:20Z","pushed_at":"2015-08-19T15:33:13Z","git_url":"git://github.com/dominikl/openmicroscopy.git","ssh_url":"git@github.com:dominikl/openmicroscopy.git","clone_url":"https://github.com/dominikl/openmicroscopy.git","svn_url":"https://github.com/dominikl/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2092575,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"openmicroscopy:develop","ref":"develop","sha":"db518a3bc812304ea7d2a96e7369b2ec23351935","user":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"repo":{"id":2228226,"name":"openmicroscopy","full_name":"openmicroscopy/openmicroscopy","owner":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmicroscopy/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":false,"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","forks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/forks","keys_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/events","assignees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/merges","archive_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/releases{/id}","created_at":"2011-08-18T14:26:02Z","updated_at":"2015-07-31T07:59:57Z","pushed_at":"2015-08-20T08:31:01Z","git_url":"git://github.com/openmicroscopy/openmicroscopy.git","ssh_url":"git@github.com:openmicroscopy/openmicroscopy.git","clone_url":"https://github.com/openmicroscopy/openmicroscopy.git","svn_url":"https://github.com/openmicroscopy/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2167454,"stargazers_count":69,"watchers_count":69,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":44,"forks":67,"open_issues":44,"watchers":69,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/4052"},"issue":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4052"},"comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4052/comments"},"review_comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052/comments"},"review_comment":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4052/commits"},"statuses":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/9b5f528011d01e6aeb4c9a451e3b69f58615fc6c"}}}}