You are here: Foswiki>Tasks Web>Item12832 (23 Nov 2015, GeorgeClark)Edit Attach

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
Reported By: VickiBrown
Waiting For:
Last Change By: GeorgeClark
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:
    Item12832 ScreenShot1.png

It wasn't particularly helpful.

To troubleshoot, I tried the same script with TWiki 6 and received this error:

  • screen shot:
    Item12832 ScreenShot2.png

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

ItemTemplate edit

Summary Unhelpful error message for app using save script
ReportedBy VickiBrown
Codebase 1.1.9, trunk
SVN Range
AppliesTo Engine
Component FoswikiUI
Priority Low
CurrentState Closed
Checkins distro:550079f10fcd distro:693b30b5d745
TargetRelease patch
ReleasedIn 1.1.10
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:693b30b5d745
Release01x01Checkins distro:550079f10fcd
Topic revision: r8 - 23 Nov 2015, GeorgeClark
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