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

Item13789: Backport CLI fix for 1.1.x, AllowLoginName blocks admin CLI access.

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.10
Target Release: patch
Applies To: Engine
Component: FoswikiEngineCLI
Branches: Release01x01
Reported By: MichaelDaum
Waiting For:
Last Change By: GeorgeClark
When AllowLoginName is enabled calling Foswiki from the commandline is not done as admin / AdminUser

--- Release01x01/core/lib/Foswiki/Engine/CLI.pm 2013-10-28 10:04:25.912913938 +0100
+++ foswiki/lib/Foswiki/Engine/CLI.pm   2014-05-23 08:52:00.000000000 +0200
@@ -77,7 +77,12 @@
         delete $this->{user};
     }
     else {
-        $req->remoteUser( $Foswiki::cfg{AdminUserWikiName} );
+       if ( $Foswiki::cfg{Register}{AllowLoginName} ) { 
+           $req->remoteUser( $Foswiki::cfg{AdminUserLogin} ); 
+       } 
+       else { 
+           $req->remoteUser( $Foswiki::cfg{AdminUserWikiName} ); 
+       } 
     }
 }

-- MichaelDaum - 05 Oct 2015

 

ItemTemplate edit

Summary Backport CLI fix for 1.1.x, AllowLoginName blocks admin CLI access.
ReportedBy MichaelDaum
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component FoswikiEngineCLI
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:1e902419d2d0
TargetRelease patch
ReleasedIn 1.1.10
CheckinsOnBranches Release01x01
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins distro:1e902419d2d0
Topic revision: r4 - 23 Nov 2015, GeorgeClark - This page was cached on 12 Apr 2017 - 06:46.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License