- assigned_to: nobody --> gyom
There are many important bugs in the way the
framework handles server-side errors :
1- Only one error is read :
the xml_sendServer function reads for ERROR by doing
l_xmlReturn.getElementsByTagName( "ERROR").item( 0)
That means only the first ERROR will be read.
2- The document returned is always empty in case of
error :
the xml_sendServer function build a document by doing
l_xmlReturn = msxml_buildDocumentFromString( "<?xml
version='1.0' encoding='ISO-8859-1'?>" + l_xmlError.xml)
But then returns l_xmlReturn.documentElement.
Which is wrong, and result in returning empty document.
It should be doing :
l_xmlReturn.documentElement = msxml_...
But then
3- The form_save function doesn't handle errors properly.
Indeed, it systematically does :
form_setDocSaved(l_xmlDATA)
Which, in the case of error, means to set DATA for the
form to the ERROR XML document.