{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/6100","labels_url":"https://api.github.com/repos/odoo/odoo/issues/6100/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/6100/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/6100/events","html_url":"https://github.com/odoo/odoo/issues/6100","id":65702389,"number":6100,"title":"Switching database in login screen gives AttributeError ('NoneType' object has no attribute 'cursor')","user":{"login":"npiganeau","id":3935559,"avatar_url":"https://avatars.githubusercontent.com/u/3935559?v=3","gravatar_id":"","url":"https://api.github.com/users/npiganeau","html_url":"https://github.com/npiganeau","followers_url":"https://api.github.com/users/npiganeau/followers","following_url":"https://api.github.com/users/npiganeau/following{/other_user}","gists_url":"https://api.github.com/users/npiganeau/gists{/gist_id}","starred_url":"https://api.github.com/users/npiganeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npiganeau/subscriptions","organizations_url":"https://api.github.com/users/npiganeau/orgs","repos_url":"https://api.github.com/users/npiganeau/repos","events_url":"https://api.github.com/users/npiganeau/events{/privacy}","received_events_url":"https://api.github.com/users/npiganeau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-01T14:40:54Z","updated_at":"2015-05-11T16:07:44Z","closed_at":null,"body":"Impacted versions:\r\n\r\n - 8.0 at least\r\n\r\nSteps to reproduce:\r\n\r\n 1. Open a runbot\r\n 2. Before login change database to uuid-whatsoever-base\r\n 3. Change back database to uuid-whatsoever-all\r\n\r\nCurrent behavior:\r\n\r\n - HTTP 500 Internal server error\r\n - Reloading the page fixes the problem\r\n - Seems to happen only on the login page when website module is not installed\r\n - Logs give \r\n\r\n Traceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Python27\\lib\\site-packages\\werkzeug\\serving.py\", line 177, in run_wsgi\r\n    execute(self.server.app)\r\n  File \"C:\\Program Files (x86)\\Python27\\lib\\site-packages\\werkzeug\\serving.py\", line 165, in execute\r\n    application_iter = app(environ, start_response)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\service\\server.py\", line 281, in app\r\n    return self.app(e, s)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\service\\wsgi_server.py\", line 216, \r\n   in application\r\n    return application_unproxied(environ, start_response)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\service\\wsgi_server.py\", line 202, in application_unproxied\r\n    result = handler(environ, start_response)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\http.py\", line 1280, in __call__\r\n    return self.dispatch(environ, start_response)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\http.py\", line 1254, in __call__\r\n    return self.app(environ, start_wrapped)\r\n  File \"C:\\Program Files (x86)\\Python27\\lib\\site-packages\\werkzeug\\wsgi.py\", line 588, in __call__\r\n    return self.app(environ, start_response)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\http.py\", line 1421, in dispatch\r\n    result = ir_http._dispatch()\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\addons\\base\\ir\\ir_http.py\", line 168, in _dispatch\r\n    return self._handle_exception(e)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\addons\\base\\ir\\ir_http.py\", line 132, in _handle_exception\r\n    attach = self._serve_attachment()\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\addons\\base\\ir\\ir_http.py\", line 104, in _serve_attachment\r\n    request.cr, openerp.SUPERUSER_ID, domain,\r\n  File \"C:\\Program Files (x86)\\Python27\\lib\\site-packages\\werkzeug\\local.py\", line 338, in __getattr__\r\n    return getattr(self._get_current_object(), name)\r\n  File \"C:\\Users\\nicolas\\Documents\\Progs\\GitHub\\odoo\\openerp\\http.py\", line 240, in cr\r\n    self._cr = self.registry.cursor()\r\nAttributeError: 'NoneType' object has no attribute 'cursor'\r\n\r\nExpected behavior:\r\n\r\n - Flawless switch between databases"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/100961094","html_url":"https://github.com/odoo/odoo/issues/6100#issuecomment-100961094","issue_url":"https://api.github.com/repos/odoo/odoo/issues/6100","id":100961094,"user":{"login":"siouf","id":5214539,"avatar_url":"https://avatars.githubusercontent.com/u/5214539?v=3","gravatar_id":"","url":"https://api.github.com/users/siouf","html_url":"https://github.com/siouf","followers_url":"https://api.github.com/users/siouf/followers","following_url":"https://api.github.com/users/siouf/following{/other_user}","gists_url":"https://api.github.com/users/siouf/gists{/gist_id}","starred_url":"https://api.github.com/users/siouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siouf/subscriptions","organizations_url":"https://api.github.com/users/siouf/orgs","repos_url":"https://api.github.com/users/siouf/repos","events_url":"https://api.github.com/users/siouf/events{/privacy}","received_events_url":"https://api.github.com/users/siouf/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T16:07:44Z","updated_at":"2015-05-11T16:07:44Z","body":"Same error here."}}