Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error on custom dropdown fields with special characters #1113

Closed
aoduor opened this issue May 14, 2013 · 5 comments
Closed

Validation error on custom dropdown fields with special characters #1113

aoduor opened this issue May 14, 2013 · 5 comments

Comments

@aoduor
Copy link
Member

aoduor commented May 14, 2013

Reported by our friends at https://lakatlan.crowdmap.com/, i tested this out locally

  • Create a custom drop down field "Test"
  • Set drop down choices to a, b, c, d at first and then submit a report - Works fine
  • Edit drop down choices to e.g nem tudom, kiváló, jó, rossz, életveszélyes
  • When trying to submit a report, it throws the following error

screenshot

@francbartoli
Copy link

Same behavior on the GeoAvalanche deployment http://geoavalanche.org/incident

@aoduor Might be of help to capture some information more on this? I'm at your disposal, just ask what

@francbartoli
Copy link

Quick updates on this:

GeoAvalanche deployment has 4 custom forms:

  1. avalanche incident --> presents the issue
  2. Snow depth --> no issue
  3. Spontaneous Avalanche --> presents the issue
  4. Snow Conditions --> presents the issue

I have no ideas what are the differences among them that issue can be related to

@francbartoli
Copy link

More info about the error:

  1. I'm not pretty sure is necessarily related only to dropdown lists with special characters. In fact I have the same behavior with this kind of POST where there isn't any special character:
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="save"

dontclose
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="location_id"

2103
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_zoom"

11
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="country_name"

Italy
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="form_id"

2
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_title"

British climbers survive Mont Blanc avalanche
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_description"

A 23 year old British mountaineer was swept 700 metres by an avalanche on the Italian side of Mont Blanc, whilst climbing with two others.
The three climbers from Chamonix were making their way down from the Aiguille di Bionnassy when the avalanche struck, fortunately both, Ben Tibbetts and Misha Gopaul, managed to avoid the path of slide but the third climber, Alastair Swinton, was caught in the avalanche. The 23 year old survived the avalanche by staying afloat by swimming the 700 metres that the avalanche carried him down the mountain face.

The avalanche struck at 13:00 on Wednesday 15th of May when the climbers were between the Col de Miage and the Col de Bionnassay.
Instead of being buried by it, he managed to "swim" across its surface for around 700 yards, Italian alpine rescue officials said.
"He was very, very lucky," Delfino Viglione, the head of a police mountain rescue unit based in the town of Aosta in the Italian Alps, told Sky News. "He was hit by the full force of the avalanche but instead of being buried he managed to swim it for 700 metres before coming to a stop.
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_date"

05/15/2013
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_hour"

01
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_minute"

00
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_ampm"

pm
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="category_name"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="category_description"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="category_color"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_category[]"

9
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[2-5]"

Other
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[2-BLANKHACK]"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[3]"

2-MODERATE
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[5]"

Mont Blanc
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[6]"

Aosta Val
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[7]"

30
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[8]"

UNKNOWN
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[9-5]"

RECCO
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[9-BLANKHACK]"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[48]"

Descent
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[10]"

0
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[11]"

1
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[12]"

0
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[53]"

Unknown
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[16]"

NATURAL
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[13]"

injure/bury a person
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[14]"

700 m
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[15]"

Slab
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="custom_field[17]"

Unknown
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="latitude"

45.83607299999999
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="longitude"

6.8182730000000005
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_label"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_comment"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_color"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_strokewidth"

0.5
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_lat"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="geometry_lon"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="OpenLayers_Control_LayerSwitcher_19_baseLayers"

OSM Cycling Map
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="Editable"

Editable
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="location_find"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="location_name"

Aiguille de Bionnassay, 74170 Saint-Gervais-les-Bains, France
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_news[]"

http://www.chamonet.com/events/news/british-climbers-survives-mont-blanc-avalanche.html
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_news[]"

http://www.telegraph.co.uk/news/worldnews/europe/italy/10059966/British-climber-survives-avalanche-by-swimming-across-it.html
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="news_id"

2
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_video[]"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="video_id"

1
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_photo[]"; filename=""
Content-Type: application/octet-stream


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="photo_id"

1
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="person_first"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="person_last"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="person_email"


------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_active"

1
------WebKitFormBoundaryjBQLhukiZyy8Xb0s
Content-Disposition: form-data; name="incident_verified"

1
------WebKitFormBoundaryjBQLhukiZyy8Xb0s--

What I noticed there, is the presence of 2 hidden fields which have both null values: custom_field[2-BLANKHACK] and custom_field[9-BLANKHACK]
These custom fields are both related to checkbox fields but doesn't appear in all the forms which are failing

@hpuiglarrauri
Copy link

We've got the same problem with a custom form for https://iraqmonitor.crowdmap.com/ It's a private deployment, but happy to give access to people who are looking into resolving this.

In the past ten days or so, no reporters have been able to submit a report. Everyone gets the error message described above. I've tried many combinations of responses (no special characters), including leaving all custom fields blank - everything results in an error. We are currently unable to enter reports.

This deployment tracks disputes in Iraq, so we are quickly getting a backlog of reports to enter. Any ideas on how quickly this can be resolved?

@aoduor
Copy link
Member Author

aoduor commented Jun 6, 2013

Hey @hpuiglarrauri, i'd really appreciate you giving me access to check this out.. Thanks

@aoduor aoduor closed this as completed in ed30196 Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants