Item12832: Unhelpful error message for app using save script
Priority: Low
Current State: Closed
Released In: 1.1.10
Target Release: patch
Applies To: Engine
Component: FoswikiUI
Branches: Release01x01 trunk
I usually write my TWiki apps to send people to an edit page, but for this one I wanted to save the page and present it that way.
<form name="newtopic" id="newtopic" action="%SCRIPTURLPATH{"save"}%/%BASEWEB%/" onsubmit="return validate_form(this)">
I got this error:
- screen shot:

It wasn't particularly helpful.
To troubleshoot, I tried the same script with TWiki 6 and received this error:
- screen shot:

Much more helpful.
--
VickiBrown - 31 Mar 2014
I can improve the message a bit, but it won't be as pretty, or generated with the templates for translation. We have an architectural difference from TWiki. We do this particular security validation extremely early, before the internal code has established the Foswiki session, the template engine, etc. This has the advantage of minimizing the places in the code where these checks are made (or missed at times .. we discovered).
--
GeorgeClark - 31 Mar 2014