2007-03-29 07:52:14 |
Bug Importer |
bug |
|
|
Imported external bug #764 |
2007-04-24 15:51:16 |
Francis J. Lacoste |
bug |
|
|
assigned to launchpad (upstream) |
2007-04-24 15:52:03 |
Francis J. Lacoste |
launchpad: status |
Unconfirmed |
In Progress |
|
2007-04-24 15:52:03 |
Francis J. Lacoste |
launchpad: importance |
Undecided |
High |
|
2007-04-24 15:52:03 |
Francis J. Lacoste |
launchpad: statusexplanation |
|
|
|
2007-04-24 15:52:03 |
Francis J. Lacoste |
launchpad: assignee |
|
flacoste |
|
2007-04-24 16:20:55 |
Francis J. Lacoste |
title |
TypeError when passing list to |
TypeError when passing list to itemswidget |
|
2007-08-12 13:08:39 |
Christian Theune |
zope3: status |
New |
Confirmed |
|
2007-08-12 13:08:39 |
Christian Theune |
zope3: statusexplanation |
|
Can somebody who is more certain about zope.app.form can review this patch? |
|
2007-09-19 18:07:11 |
Francis J. Lacoste |
launchpad: importance |
High |
Low |
|
2008-09-09 19:21:26 |
Ursula Junque |
description |
When an itemswidget inheriting from SingleDataHelper (like SelectWidget or RadioWidget) receives a list from the request, it fails with a TypeError.
The widget will receive a list instead of a string with handcrafted URLs like: form?field.radio=1&field.radio=1. This can also happen with self-posting forms: some buggy browsers will interpret action="" as including the previous query parameters and will append the new parameters to the old ones, resulting in such a URL being accessed.
I think it would be better if TypeError would be caught and transformed into the appropriate ConversionError.
I'm attaching a patch with test. |
When an itemswidget inheriting from SingleDataHelper (like SelectWidget or RadioWidget) receives a list from the request, it fails with a TypeError.
The widget will receive a list instead of a string with handcrafted URLs like: form?field.radio=1&field.radio=1. This can also happen with self-posting forms: some buggy browsers will interpret action="" as including the previous query parameters and will append the new parameters to the old ones, resulting in such a URL being accessed.
I think it would be better if TypeError would be caught and transformed into the appropriate ConversionError.
I'm attaching a patch with test.
Recently: OOPS-981G1766, OOPS-981H1776
TypeError: list objects are unhashable
|
|
2010-01-22 23:24:21 |
Curtis Hovey |
launchpad-foundations: status |
In Progress |
Triaged |
|
2010-01-22 23:24:24 |
Curtis Hovey |
launchpad-foundations: assignee |
Francis J. Lacoste (flacoste) |
|
|
2010-04-15 04:06:43 |
Tres Seaver |
bug task added |
|
zope.formlib |
|
2010-04-15 04:07:13 |
Tres Seaver |
zope.formlib: status |
New |
Confirmed |
|
2010-04-15 04:07:26 |
Tres Seaver |
zope.formlib: importance |
Undecided |
Medium |
|
2010-04-15 04:07:29 |
Tres Seaver |
zope3: status |
Confirmed |
Won't Fix |
|
2010-04-15 04:18:42 |
Tres Seaver |
zope.formlib: status |
Confirmed |
Fix Committed |
|
2010-04-15 04:18:42 |
Tres Seaver |
zope.formlib: assignee |
|
Tres Seaver (tseaver) |
|
2010-04-21 17:10:35 |
Tres Seaver |
tags |
|
bugday20100424 |
|
2010-05-07 01:39:08 |
Tres Seaver |
zope.formlib: status |
Fix Committed |
Fix Released |
|
2012-12-21 19:51:00 |
Francis J. Lacoste |
removed subscriber Francis J. Lacoste |
|
|
|