webpage crash when email search fails
Reported by Peter W | May 31st, 2009 @ 10:00 PM | in v3.0.0
From the Bulletin Board of Cast Votes, if you search for an email address that doesn't exist and can't be found, the following scary (to users) message is displayed:
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File
"/base/data/home/apps/heliosvoting/1.330985382170238730/cherrypy/_cprequest.py",
line 606, in respond
cherrypy.response.body = self.handler()
File "/base/data/home/apps/heliosvoting/1.330985382170238730/cherrypy/_cpdispatch.py", line 24, in call
return self.callable(*self.args, **self.kwargs)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/base/REST.py", line 168, in default
return method(resource, *vpath, **params)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/base/init.py", line 25, in apply_before_filter
return func(self, *args, **kwargs)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/controllers/election.py", line 631, in bboard
return self.render('bboard')
File "/base/data/home/apps/heliosvoting/1.330985382170238730/base/init.py", line 46, in render
return template.render(self.__class__.TEMPLATES_DIR + tmpl, 1)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/base/template.py", line 15, in render
return Template(file= PREFIX + template + ".tmpl", searchList = [utils.parent_vars(1+extra_level)]).respond()
File "_base_data_home_apps_heliosvoting_1_330985382170238730_templates_election_bboard_tmpl.py", line 137, in respond File "/base/data/home/apps/heliosvoting/1.330985382170238730/Cheetah/NameMapper.py", line 235, in valueFromSearchList
executeCallables=executeCallables)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/Cheetah/NameMapper.py", line 215, in _valueForName
_raiseNotFoundException(key, obj)
File "/base/data/home/apps/heliosvoting/1.330985382170238730/Cheetah/NameMapper.py", line 175, in _raiseNotFoundException
raise NotFound(excString)
NotFound: cannot find 'name'
Instead of that, I'd expect a more friendly "Email not found" message.
Comments and changes to this ticket
-
Ben Adida August 8th, 2010 @ 10:57 PM
- Milestone changed from UCL Demo to v3.0.0
- State changed from open to resolved
- Milestone order changed from 0 to 0
solved in v3.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
the Helios Voting System