← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 847640] [NEW] Incorrect login informations should indicate the login informations are incorrect, not splatter a weird error on the screen

 

Public bug reported:

Currently, if login informations are incorrect (e.g. wrong password),
instead of explaining there is an issue with the provided credentials
the client displays a mostly-useless error (of course the user is not
logged, he's trying to log in right now):

     OpenERP WebClient Error
     Client Traceback (most recent call last):
       File "/Users/masklinn/projects/tiny/web/current/addons/web/common/dispatch.py", line 165, in dispatch
         response["result"] = method(controller, self, **self.params)
       File "/Users/masklinn/projects/tiny/web/current/addons/web/controllers/main.py", line 295, in login
         ctx = req.session.get_context()
       File "/Users/masklinn/projects/tiny/web/current/addons/web/common/backendrpc.py", line 111, in get_context
         assert self._uid, "The user needs to be logged-in to initialize his context"
     AssertionError: The user needs to be logged-in to initialize his context

Furthermore, the error takes a *long* time to come back (> half a
second)

** Affects: openerp-web
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/847640

Title:
  Incorrect login informations should indicate the login informations
  are incorrect, not splatter a weird error on the screen

Status in OpenERP Web:
  New

Bug description:
  Currently, if login informations are incorrect (e.g. wrong password),
  instead of explaining there is an issue with the provided credentials
  the client displays a mostly-useless error (of course the user is not
  logged, he's trying to log in right now):

       OpenERP WebClient Error
       Client Traceback (most recent call last):
         File "/Users/masklinn/projects/tiny/web/current/addons/web/common/dispatch.py", line 165, in dispatch
           response["result"] = method(controller, self, **self.params)
         File "/Users/masklinn/projects/tiny/web/current/addons/web/controllers/main.py", line 295, in login
           ctx = req.session.get_context()
         File "/Users/masklinn/projects/tiny/web/current/addons/web/common/backendrpc.py", line 111, in get_context
           assert self._uid, "The user needs to be logged-in to initialize his context"
       AssertionError: The user needs to be logged-in to initialize his context

  Furthermore, the error takes a *long* time to come back (> half a
  second)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/847640/+subscriptions


Follow ups

References