Closed Bug 702794 Opened 14 years ago Closed 13 years ago

[traceback] [prod] Exception: KeyError: 'uid'

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: mbrandt, Assigned: tofumatt)

References

()

Details

(Whiteboard: [prod] [traceback] [LDAP])

Traceback (most recent call last): File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/mozillians.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 19, in _wrapped_view return view_func(request, *args, **kwargs) File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 40, in wrapped return f(request, *args, **kwargs) File "/data/www/mozillians.org/mozillians/apps/groups/views.py", line 46, in show users = users_from_groups(request, group, limit=PAGINATION_LIMIT) File "/data/www/mozillians.org/mozillians/apps/groups/helpers.py", line 30, in users_from_groups search_result = ldap.search_by_email(u.email) File "/data/www/mozillians.org/mozillians/apps/larper/__init__.py", line 180, in search_by_email return self._populate_people_results(self._people_search(q)) File "/data/www/mozillians.org/mozillians/apps/larper/__init__.py", line 410, in _populate_people_results p = Person.new_from_directory(attrs) File "/data/www/mozillians.org/mozillians/apps/larper/__init__.py", line 514, in new_from_directory ldap_attrs['uid'][0].decode('utf-8'), KeyError: 'uid'
These are continuing to come in from prod and are generated by the following urls as well. - http://mozillians.org/fr/group/25-support - http://mozillians.org/fr/group/192-sumo - http://mozillians.org/fr/group/596-france
This is crazy. I'll do my best on this one. This is really troubling though.
Assignee: nobody → tofumatt
Whiteboard: [prod] [traceback] [LDAP]
(In reply to Matthew Riley MacPherson [:tofumatt] from comment #2) > This is crazy. I'll do my best on this one. This is really troubling though. This comes from a place of not knowing, is there more information that QA can attach to bugs like this one that would be useful for you?
Probably not. This error basically says that there's an LDAP user the query is returning that doesn't have a unique ID. Given that's one of the constraints of our system (and is the ID we use for virtually everything in Mozillians), I just don't understand how this is possible. I'm mostly voicing my concern that our user system is, seemingly, incredibly fragile. I am simply surprised this is possible.
These little beauties are still flooding in... too many to count.
Target Milestone: --- → 1.2
is this still happening?
Yes
Target Milestone: 1.2 → 1.3
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Verified with both a staff and non-staff account.
Status: RESOLVED → VERIFIED
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Target Milestone: 1.3 → ---
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.