Item12123: FormPlugin crashes when missing (") parameter

pencil
Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
Reported By: StefanosKouzof
Waiting For:
Last Change By: JulianLevens
This code crashes Form Plugin:
%STARTFORM{name="Companies" action="save" topic="%WEB%.CompanyNoAUTOINC0001" onSubmit="return notify(this)" method="post"}%
%FORMELEMENT{name="TopicTitle" type="text size="80" title="Company Name" mandatory="on"}%
%FORMELEMENT{name="templatetopic" type="hidden" default="CompanyTemplate"}%
%FORMELEMENT{name="action" type="submit" buttonlabel="Submit"}%
%ENDFORM%
with the following message:

Foswiki::Plugins::FormPlugin::Renderer::Html::FieldFactory : Could not create field of type text size=.

The error is in the second line. The parameter type in the Form Element "TopicTitle" is not bracketed in ("). And it is v e r y h a r d to spot.

-- StefanosKouzof - 05 Oct 2012

I suspect Item12100 is related. Basically both are failing to parse malformed keys/attrs in %META & %MACRO respectively. How to parse around these and inform the user clearly of an issue is non-trivial, but very important it. These thinsg should be easy to spot.

I have not maked this as a duplicate, while they are similar, there are important differences. Nonetheless, it might be appropriate to fix these together..

-- JulianLevens - 08 Oct 2012
 

ItemTemplate edit

Summary FormPlugin crashes when missing (") parameter
ReportedBy StefanosKouzof
Codebase
SVN Range
AppliesTo Extension
Component FormPlugin
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r3 - 08 Oct 2012, JulianLevens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy