Login signup form raises traceback if the username already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP's Framework R&D |
Bug Description
When a document is shared with a partner , an e.mail is sent with a link to the OpenERP server showing a Signup form.
In this form, if the username already exists, and ugly traceback is raised, instead of a friendlier message.
(Also, the person is able to change the Username in the form, which will probably make useless the access rules created to share the documents, but I'm just guessing here).
OpenERP WebClient Error
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
self.
File "/home/
res_
File "/home/
self.
File "/home/
return self.copy(cr, uid, template_user_id, values, context=context)
File "/home/
return super(res_users, self).copy(cr, uid, id, default, context)
File "/home/
new_id = self.create(cr, uid, data, context)
File "/home/
user_id = super(res_users, self).create(cr, uid, data, context=context)
File "/home/
user_id = super(res_users, self).create(cr, uid, values, context=context)
File "/home/
user_id = super(res_users, self).create(cr, uid, data, context=context)
File "/home/
return super(users_view, self).create(cr, uid, values, context)
File "/home/
user_id = super(users_
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
IntegrityError: duplicate key value violates unique constraint "res_users_
DETAIL: Key (login)=(<email address hidden>) already exists.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 17 lines (+3/-1)1 file modifiedauth_signup/res_users.py (+3/-1)
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in openobject-server: | |
importance: | High → Medium |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
affects: | openobject-server → openobject-addons |
summary: |
- [7.0] Login signup form raises traceback if the username already exists + Login signup form raises traceback if the username already exists |
Hello Daniel Reis ,
I have trace the issue and fix on branch lp:~openerp-dev/openobject-addons/7.0-bug-1103439-aja at revision #9031.
@community team : bug is not belongs framework project , user signup process is handle from the addons.
kindly take appropriate decision.
Thank You.