Roundup Tracker - Issues

Issue 2550643

classification
Logging in fails with error "'list' object has no attribute 'value'"
Type: crash Severity: normal
Components: Web interface Versions: 1.4
process
Status: closed
:
: : draghuram, richard
Priority: : patch

Created on 2010-03-12 19:02 by draghuram, last changed 2010-03-20 04:25 by richard.

Files
File name Uploaded Description Edit Remove
client.py.diff draghuram, 2010-03-12 19:02
Messages
msg4038 Author: [hidden] (draghuram) Date: 2010-03-12 19:02
While playing with jython roundup tracker (http://bugs.jython.org/) 
locally, I hit a problem during user login.

-----
Traceback (most recent call last):
  File "/opt/tracker-roundup//lib/python2.6/site-
packages/roundup/cgi/client.py", line 442, in inner_main
    html = self.handle_action()
  File "/opt/tracker-roundup//lib/python2.6/site-
packages/roundup/cgi/client.py", line 1121, in handle_action
    action = self.form['@action'].value.lower()
AttributeError: 'list' object has no attribute 'value'
-----

On investigating the problem, I found one earlier issue similar to this 
one: http://issues.roundup-tracker.org/issue2550504

I am attaching a patch that fixed the problem for me. Note that my test 
was against 1.4.10 (which jython tracker uses) even though I generated 
the patch against trunk.
msg4042 Author: [hidden] (richard) Date: 2010-03-20 04:25
This bug usually indicates the <form> for login has somehow managed to get two <input> 
fields with the name "@action". This is usually due to an error.

I will modify Roundup to detect multiple @action values and raise a more useful error.
History
Date User Action Args
2010-03-20 04:25:44richardsetstatus: new -> closed
nosy: + richard
messages: + msg4042
2010-03-12 19:02:07draghuramcreate