cannot edit repo group when group name numeric

Issue #871 resolved
Former user created an issue

Cannot edit repo group when group name is numeric, eg `2013'

Statement tracing indicates that the problem comes from firing this statement:

<user%db:21191@2013-07-01 14:30:19 EDT>LOG: statement: SELECT groups.group_id AS groups_group_id, groups.group_name AS groups_group_name, groups.group_parent_id AS groups_group_parent_id, groups.group_description AS groups_group_description, groups.enable_locking AS groups_enable_locking, groups.user_id AS groups_user_id FROM groups WHERE groups.group_id = E'2013'

where `2013' is a non-existent group id, but is an existent group name.

Tracing with a group name that is alphanumeric, eg `Old', leads to the correct where clause

... WHERE groups.group_name = E'Old' ORDER BY group_name

(pip freeze gives me

Babel==0.9.6 Beaker==1.6.4 FormEncode==1.2.4 Mako==0.7.3 Markdown==2.2.1 MarkupSafe==0.15 Paste== PasteDeploy==1.5.0 PasteScript==1.7.5 Pygments==1.5 Pylons==1.0 RhodeCode==1.7.1 Routes==1.13 SQLAlchemy==0.7.10 Tempita==0.5.1 WebError==0.10.3 WebHelpers==1.3 WebOb==1.0.8 WebTest==1.4.3 Whoosh==2.4.1 amqplib==1.0.2 anyjson==0.3.3 celery==2.2.10 decorator==3.4.0 docutils==0.8.1 dulwich==0.8.7 kombu==1.5.1 mercurial==2.6.2 mock==1.0.0 nose==1.2.1 psycopg2==2.4.5 py-bcrypt==0.2 pyparsing==1.5.5 python-dateutil==1.5 python-ldap==2.4.10 repoze.lru==0.6 simplejson==2.5.2 waitress==0.8.4 wsgiref==0.1.2


Comments (1)

  1. Log in to comment