• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7910: Can't create a topic using command line bin/save

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Waiting for Release   patch 6.1.1

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


It's not possible to create a topic using command line bin/save. Example:
cd twiki/bin
./save -topic Sandbox.TestSave -user PeterThoeny -text "just a test"

Error reported:

The save script can only be called with POST method.

This issue was reported in TWiki:Support.SID-02453

-- TWiki:Main/PeterThoeny - 2020-09-16

This is now fixed. Patch:

--- lib/TWiki/UI/Save.pm   (revision 30798)
+++ lib/TWiki/UI/Save.pm   (working copy)
@@ -53,7 +53,7 @@
     my $revision = $query->param( 'rev' ) || undef;
     my $reqmethod = $query->request_method();
-    if( $reqmethod && $reqmethod !~ /^POST$/i ) {
+    if( $reqmethod && $reqmethod !~ /^POST$/i && !$session->inContext('command_line') ) {
         # save can only be called via POST method or command line
         throw TWiki::OopsException(

-- TWiki:Main.PeterThoeny - 2020-09-16

Summary Can't create a topic using command line bin/save
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 6.1.0
SVN Range TWiki-6.1.0-trunk, Mon, 01 Jun 2020, build 30764
AppliesTo Engine

Priority Normal
CurrentState Waiting for Release

Checkins TWikirev:30803 TWikirev:30804
TargetRelease patch
ReleasedIn 6.1.1
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2020-09-16 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback