{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9230","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9230/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9230/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9230/events","html_url":"https://github.com/joomla/joomla-cms/pull/9230","id":136917051,"number":9230,"title":"Fix session reset for updates from 3.4.8.","user":{"login":"Harmageddon","id":1410135,"avatar_url":"https://avatars.githubusercontent.com/u/1410135?v=3","gravatar_id":"","url":"https://api.github.com/users/Harmageddon","html_url":"https://github.com/Harmageddon","followers_url":"https://api.github.com/users/Harmageddon/followers","following_url":"https://api.github.com/users/Harmageddon/following{/other_user}","gists_url":"https://api.github.com/users/Harmageddon/gists{/gist_id}","starred_url":"https://api.github.com/users/Harmageddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harmageddon/subscriptions","organizations_url":"https://api.github.com/users/Harmageddon/orgs","repos_url":"https://api.github.com/users/Harmageddon/repos","events_url":"https://api.github.com/users/Harmageddon/events{/privacy}","received_events_url":"https://api.github.com/users/Harmageddon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7","html_url":"https://github.com/joomla/joomla-cms/milestones/Joomla!%203.5.0","labels_url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7/labels","id":944889,"number":7,"title":"Joomla! 3.5.0","description":"","creator":{"login":"rdeutz","id":467356,"avatar_url":"https://avatars.githubusercontent.com/u/467356?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeutz","html_url":"https://github.com/rdeutz","followers_url":"https://api.github.com/users/rdeutz/followers","following_url":"https://api.github.com/users/rdeutz/following{/other_user}","gists_url":"https://api.github.com/users/rdeutz/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeutz/subscriptions","organizations_url":"https://api.github.com/users/rdeutz/orgs","repos_url":"https://api.github.com/users/rdeutz/repos","events_url":"https://api.github.com/users/rdeutz/events{/privacy}","received_events_url":"https://api.github.com/users/rdeutz/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":618,"state":"open","created_at":"2015-01-21T08:12:44Z","updated_at":"2016-02-27T15:33:37Z","due_on":"2016-03-08T23:00:00Z","closed_at":null},"comments":4,"created_at":"2016-02-27T13:09:41Z","updated_at":"2016-02-27T21:48:35Z","closed_at":"2016-02-27T14:40:45Z","pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/9230","html_url":"https://github.com/joomla/joomla-cms/pull/9230","diff_url":"https://github.com/joomla/joomla-cms/pull/9230.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/9230.patch"},"body":"Pull Request for Issue #9014 .\r\n\r\nCredits for this PR to @zero-24 who investigated this issue and proposed this fix!\r\n\r\n#### Summary of Changes\r\n\r\n* Change 1: Restart the session only, if we have no active session.\r\n* Change 2: Inside the \"truncateTable\" function, the table name is quoted already, so we don't need to quote the argument, which would lead to a double quoted table name and thus to a MySQL error.\r\n\r\n#### Testing Instructions\r\nAn update package including this change (modified version of the beta 2 package) can be found [here](http://www.zweiiconkram.de/upload/Joomla_3.5.0-beta2-Beta-Update_Package.zip). Please note that the only change included in this package is the one from this PR. So you might encounter other issues which were already fixed since the release of beta2.\r\n\r\nPlease test this update package (or an own one including these changes) for the following cases:\r\n\r\n1. Update from 3.4.5 or older versions.\r\n  * Expected behavior: You should be logged out, because the session in the old format from 3.4.5 or older has to be deleted and a new session in the new, safer format has to be started.\r\n2. Update from 3.4.8\r\n  * Expected behavior: You should **not** be logged out, because you already have a session in the new format.\r\n3. Update from beta2\r\n  * Expected behavior: Same as for 3.4.8.\r\n\r\n@nikosdion As the first change of this PR will mostly affect updates via Akeeba CLI, could you please check if this introduces any issues?"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/189735200","html_url":"https://github.com/joomla/joomla-cms/pull/9230#issuecomment-189735200","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9230","id":189735200,"user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T21:48:34Z","updated_at":"2016-02-27T21:48:34Z","body":"Thanks @wilsonge for merging :+1: "}}