You are here: Foswiki>Tasks Web>Item2056 (04 Jan 2015, GeorgeClark)Edit Attach
Calling command line:

./manage -action deleteUserAccount -user luser -password secret

results in

Can't locate object method "remove" via package "TWiki::User" 
(perhaps you forgot to load "TWiki::User"?) at lib/TWiki/UI/Manage.pm line 119.

That is in _removeUser() and calls

$user->remove();

I can't find any method in UI/User.pm that looks like it does the job this expects. What happened to it?

--

http://koala.ilog.fr/twikiirc/bin/irclogger_log/twiki?date=2006-04-08,Sat&sel=20#l16

In short, Sven ran out of time when implementing it. frown, sad smile

-- [MC]


If I could then point out something that needs to be addressed when Sven gets to it... I get a notwikiuser exception on a valid user because I have PasswordManager set to none (require user directives in .htaccess force intranet login and the users have been BulkRegistered) and therefore no .htpasswd file. The code in question is

    # check if user entry exists
    if( $user && !$user->passwordExists()) {
        throw TWiki::OopsException( 'attention',
                                    web => $webName,
                                    topic => $topic,
                                    def => 'notwikiuser',
                                    params => $user->stringify() );

in UI/Manage.pm. Probably need to use a different method from passwordExists.

I am not sure I agree with the rating of this as an enhancement given that an advertised capability fails with a code exception.


No Action. This feature is in 1.2, and is tested by exercising from the AntiWikiSpamPlugin

-- Main.GeorgeClark - 04 Jan 2015 - 21:13

ItemTemplate edit

Summary UI::Manage::_removeUser broken
ReportedBy TWiki:Main.PeterScott
Codebase
SVN Range 4.0.2
AppliesTo Engine
Component FoswikiUsers
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r7 - 04 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy