Rename does not work, and fails silently if called from the command line. Example:
./rename -topic Sandbox.TestTopic1 -newweb Sandbox -newtopic TestTopicNew -user admin
--
TWiki:Main/PeterThoeny
- 2020-08-02
Patch:
Index: TWiki/UI/Manage.pm
===================================================================
--- TWiki/UI/Manage.pm (revision 30785)
+++ TWiki/UI/Manage.pm (working copy)
@@ -521,7 +521,8 @@
return;
}
- return undef unless (!$query || $query->request_method() =~ /^POST$/i );
+ return undef unless ( $session->inContext( 'command_line' ) ||
+ !$query || $query->request_method() =~ /^POST$/i );
my $new_url;
my $trashWebName = $session->trashWebName(web => $oldWeb);
--
TWiki:Main.PeterThoeny
- 2020-08-02