Generate notifications for failed XSLT saves
Status: Beta
Brought to you by:
whitemice
Saving an XSLT template to the workflow engine automatically fails if the XSLT is invalid - which is good. But file managers and the like can't report a useful error message. It would be useful to generate a notification to the current user containing the actual error message from the validity test.
In the coils log file something like the following appears -
xsd.fill(data=payload)
File "/home/awilliam/projects/coils-code/src/coils/logic/workflow/xmlobject.py", line 71, in fill
self.verify(rfile=rfile, data=data)
File "/home/awilliam/projects/coils-code/src/coils/logic/workflow/xmlobject.py", line 142, in verify
raise e
XMLSyntaxError: Opening and ending tag mismatch: when line 13 and choose, line 31, column 23
XSLTFolder of the WebDAV presentations sends an e-mail to the authenticated user with documentation of the error when attempting to save the document. The save then abends with an exception.