• 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.

Item7906: Rename topic fails silently using CLI

Item Form Data

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

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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

ItemTemplate
Summary Rename topic fails silently using CLI
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 6.1.0
SVN Range TWiki-6.1.0-trunk, Mon, 01 Jun 2020, build 30764
AppliesTo Engine
Component UI
Priority Normal
CurrentState Waiting for Release
WaitingFor

Checkins TWikirev:30785 TWikirev:30786
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-08-02 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback