Gmane
From: Manuel Wallnöfer <manuel.wallnoefer <at> msk-informatik.at>
Subject: delete user with cmsObj.deleteUser("username") problem
Newsgroups: gmane.comp.cms.opencms.devel
Date: 2008-07-25 17:48:05 GMT (6 weeks, 1 day, 8 hours and 54 minutes ago)
Hi all !

I have written a short method to delete certain Opencms users.

If i open a .jsp file inside OpenCms ( logged in as Admin) where this 
method is called, everything works fine.

But i wnt to execute this method with a cron job.

So i wrote a Scheduled job an there i call the same Method. And now it 
doesnt work.

First i thought it could be a permission problem, so that the CmsObject 
i am working with has no Admin role.

But i call the method "cmsObj.isAdmin()" and it returns "true".

So i am Admin , because i'm  starting the scheduled job as Admin.

The exception which is thrown when the method 
"cmsObj.deleteUser("username");" is the following:

Error in delete user:  org.opencms.file.CmsVfsException: Fehler beim 
Löschen des Benutzers "1".

Has anybody an idea how i can solve this problem ??

Thx for help !

~ manuel

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev