plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
246 stars 186 forks source link

Dexterity Float field: bad error handling #1005

Open zopyx opened 9 years ago

zopyx commented 9 years ago

Adding a float field with max value < min value causes the following error on the console instead of propagating the error properly to the Plone UI. screenshot 2015-09-16 18 10 22

015-09-16 18:02:57 INFO plone.protect aborting transaction due to no CSRF protection on url http://dev1.veit-schiele.de:8080/Plone0/@@manage-group-dashboard 2015-09-16 18:09:37 ERROR Zope.SiteErrorLog 1442419777.780.0819287597011 http://dev1.veit-schiele.de:8080/Plone0/member-fields/xxxx/@@edit Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module plone.z3cform.layout, line 66, in call Module plone.z3cform.layout, line 50, in update Module plone.z3cform.fieldsets.extensible, line 59, in update Module plone.z3cform.patch, line 30, in GroupForm_update Module z3c.form.group, line 145, in update Module plone.app.z3cform.csrf, line 21, in execute Module z3c.form.action, line 98, in execute Module z3c.form.button, line 315, in call Module z3c.form.button, line 170, in call Module plone.schemaeditor.browser.field.edit, line 158, in handleSave Module z3c.form.group, line 114, in applyChanges Module z3c.form.form, line 50, in applyChanges Module plone.schemaeditor.browser.field.edit, line 101, in set Module z3c.form.datamanager, line 91, in set Module zope.schema._bootstrapfields, line 53, in set Module zope.schema._bootstrapfields, line 182, in validate Module zope.schema._bootstrapfields, line 289, in _validate TooSmall: (-5.0, 200.0)

davisagli commented 2 years ago

Still broken in Plone 6 classic. For the user, nothing happens and the edit form remains open. In the JS console it says "error happened error do something" 😆