[Standards-JIG] how to deal with xdata validation errors

Ralph Meijer jabber.org at ralphm.ik.nu
Mon Dec 6 14:04:18 UTC 2004

On Mon, Dec 06, 2004 at 08:35:38AM -0500, Justin wrote:
> Going through the xdata validation jep, 
> http://www.jabber.org/jeps/jep-0122.html , I noticed there is no way to 
> deal with errors.
> It clearly states that the processor of the submitted form should not 
> assume the data is pre-validated. This implies that incorrect data can 
> be submitted, e.g. out of range. How should this error condition be 
> reported?

Section 4 of JEP-0004 reads:

  4. Data Validation

  Data validation is the responsibility of the forms-processing entity
  (commonly a server, service, or bot) rather than the forms-submitting entity
  (commonly a client controlled by a human user). This helps to meet the
  requirement for keeping client implementations simple. If the
  forms-processing entity determines that the data provided is not valid, it
  SHOULD return a "Not Acceptable" error, optionally providing a textual
  explanation in the XMPP <text/> element or an application-specific child
  element that identifies the problem (see Error Condition Mappings [10] for
  information about mappings and formats).



More information about the Standards mailing list