"The Team was not found" after changing the team display name in launchpad

Bug #518479 reported by Savvas Radevic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
High
Unassigned

Bug Description

I changed the display name of the team, from "Cypriot Ubuntu LoCo" to "Ubuntu Cyprus":
https://edge.launchpad.net/~ubuntu-cy

I then went to http://loco.ubuntu.com/teams/ubuntu-cy and tried to add the wiki page:
http://loco.ubuntu.com/teams/ubuntu-cy/edit

I click "Update information now!" and an error popped up saying:
"The Team was not found!
You can browse the full list of teams

Please make sure the team you are looking for is a member of The LoCo Teams group in Launchpad

If you believe the reason you are here is an bug in the LoCo Directory please Report it!"

But the information was changed correctly though.

Revision history for this message
Daniel Holbach (dholbach) wrote :
Download full text (3.5 KiB)

Confirmed. I got this mail by the LD:

Traceback (most recent call last):

  File "/var/lib/python-support/python2.5/django/core/handlers/base.py", line 86, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/var/lib/python-support/python2.5/django/contrib/auth/decorators.py", line 67, in __call__
    return self.view_func(request, *args, **kwargs)

  File "/srv/loco.ubuntu.com/loco_directory/teams/views.py", line 75, in team_edit
    request.user.message_set.create(message=_('Team details updated'))

  File "/var/lib/python-support/python2.5/django/db/models/fields/related.py", line 310, in create
    return super(RelatedManager, self).create(**kwargs)

  File "/var/lib/python-support/python2.5/django/db/models/manager.py", line 99, in create
    return self.get_query_set().create(**kwargs)

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 319, in create
    obj.save(force_insert=True)

  File "/var/lib/python-support/python2.5/django/db/models/base.py", line 311, in save
    self.save_base(force_insert=force_insert, force_update=force_update)

  File "/var/lib/python-support/python2.5/django/db/models/base.py", line 383, in save_base
    result = manager._insert(values, return_id=update_pk)

  File "/var/lib/python-support/python2.5/django/db/models/manager.py", line 138, in _insert
    return insert_query(self.model, values, **kwargs)

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 894, in insert_query
    return query.execute_sql(return_id)

  File "/var/lib/python-support/python2.5/django/db/models/sql/subqueries.py", line 309, in execute_sql
    cursor = super(InsertQuery, self).execute_sql(None)

  File "/var/lib/python-support/python2.5/django/db/models/sql/query.py", line 1734, in execute_sql
    cursor.execute(sql, params)

ProgrammingError: can't adapt

<ModPythonRequest
path:/teams/ubuntu-cy/edit,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'forum_url': [u'http://www.ubuntucy.org/forum'], u'city': [u''], u'wiki_url': [u'http://www.ubuntucy.org/wiki'], u'country': [u'Cyprus'], u'spr': [u''], u'irc_chan': [u'#ubuntu-cy'], u'provides_support': [u'on'], u'web_url': [u'http://www.ubuntucy.org/'], u'ml_url': [u'https://lists.ubuntu.com/mailman/listinfo/ubuntu-cy'], u'email': [<email address hidden>']}>,
COOKIES:{'sessionid': 'c792638f11fa502343c569526c4a3164'},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0L,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.7,el;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_CONTENT_LENGTH': '299',
 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'HTTP_COOKIE': 'sessionid=c792638f11fa502343c569526c4a3164',
 'HTTP_HOST': 'loco.ubuntu.com',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_REFERER': 'http://loco.ubuntu.com/teams/ubuntu-cy/edit',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100106 U...

Read more...

Changed in loco-directory:
status: New → Confirmed
Dave Walker (davewalker)
Changed in loco-directory:
importance: Undecided → High
Revision history for this message
Thomas Bechtold (toabctl) wrote :

I think this has nothing to do with changed display name in LP. I tried to reproduce the bug but this was not possible.
This bug was with loco-directory v0.1. Maybe the problem was: request.user.message_set.create(message=_('Team details updated'))

And we fixed this already and use ugettext() instead of _()
I'll close this bug for now.

Changed in loco-directory:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.