adhocracy3 icon indicating copy to clipboard operation
adhocracy3 copied to clipboard

backend validation is not strict enough for coordinates input

Open MagdaN opened this issue 10 years ago • 4 comments

creating a kiezkassenproposal without adding a geolocation used to work but does not anymore - these are the errors:

description: ""<colander._drop object at 0x7fc538e31390>" is not a number"
location: "body"
name: "coordinates.0"

description: ""<colander._drop object at 0x7fc538e31390>" is not a number"
location: "body"
name: "coordinates.1"

Adding a marker/pin to the map is supposed to be optional.

MagdaN avatar May 06 '15 14:05 MagdaN

The errors mentioned above happen on GET. POST responds with a 200 status.

xi avatar May 11 '15 10:05 xi

The frontend should not POST a value of coordinates: [null, null] but either nothing or coordinates: [0,0] to set the default value.

The backend need to be fixed and reject such requests.

pallix avatar May 12 '15 16:05 pallix

The frontend part is fixed in #1129

xi avatar May 13 '15 08:05 xi

Colander issue 224 and 225 should help to fix it Pylons/colander#224 Pylons/colander#225

pallix avatar May 18 '15 14:05 pallix