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(
'attention',
--
TWiki:Main.PeterThoeny
- 2020-09-16