Roundup Tracker - Issues

Message560

Author stefan
Recipients
Date 2003-01-06.17:46:07
Message-id
In-reply-to
trying to create a new issue ('task') via cgi generates
this traceback:

Traceback (most recent call last):
  File
"/org/fresco.org/lib/python2.1/site-packages/roundup/cgi/client.py",
line 412, in handle_action
    getattr(self, method)()
  File
"/org/fresco.org/lib/python2.1/site-packages/roundup/cgi/client.py",
line 752, in newItemAction
    props = parsePropsFromForm(self.db, cl, self.form,
self.nodeid)
  File
"/org/fresco.org/lib/python2.1/site-packages/roundup/cgi/client.py",
line 1298, in parsePropsFromForm
    existing = cl.get(nodeid, propname, [])
  File
"/org/fresco.org/lib/python2.1/site-packages/roundup/backends/back_anydbm.py",
line 996, in get
    d = self.db.getnode(self.classname, nodeid,
cache=cache)
  File
"/org/fresco.org/lib/python2.1/site-packages/roundup/backends/back_anydbm.py",
line 305, in getnode
    if not db.has_key(nodeid):
TypeError: key type must be string

Looking at the actual code I come to the following
conclusion:

you call parsePropsFromForm with a 'None' nodeid (as
this is called
from 'newItemAction'), but at line 1298 you call
cl.get(nodeid,propname,[]), instead of checking first
whether or not the nodeid is valid.

History
Date User Action Args
2009-02-03 14:20:11adminlinkissue663235 messages
2009-02-03 14:20:11admincreate