Agent 'Update Tasks' needs unrestricted access?

After upgrading mail application from 8.5.1 to 8.5.2 (german language pack) i get the following error from amgr:

AMgr: Agent (‘Aufgaben aktualisieren|Update Tasks’ in ‘mail\admin.nsf’) error message: When running on a server, you must have UNRESTRICTED access in order to set environment variables or get system variables

The agent signer is member of a group and the group is listed in the server config doc / security… The same error occurs if the agent signer is explicit listed in the server config doc :-\

It is reproducible for:

  • Server 8.5.1 and mail template 8.5.2 = error

  • Server 8.5.1 and mail template 8.5.1 = works fine

  • Server 8.5.2 and mail template 8.5.2 = error

  • Server 8.5.2 and mail template 8.5.1 = works fine

Any help on this is highly appreciated. Thanks.

Subject: It works!

Got this tip and it works:"Its a BUG in ther 8.5.2 mail template

There is a work around:change the security setting in the template to 2 and then design update will resolve the issue"

Subject: change the security setting in the template to 2 ?

Can anyone tell me, How to change the security setting in the template to 2 ?

Please help

Kim

Subject: Runtime Security Level 2

In Agent’s security settings, pick “2. Allow restricted operations.”

Subject: Better fix

Here’s a fix that doesn’t involve lowering the security of the agent:

If you load up Designer and go to the Common script library, you’ll see this at the bottom of NOTEUserIsCreator:

If Not(session.IsOnServer) Then

If Not(session.Getenvironmentstring(“CSNoNameComparePrevOwner”, True) = “1”) Then

If NOTEUserIsCreator = False And note.HasItem(“Chair”) Then

Dim calprof As NotesDocument

Set calprof = session.Currentdatabase.Getprofiledocument(“calendarprofile”)

If calprof.Hasitem(“$PrevBusyName”) Then

Dim OwnerNotesName As New NotesName(strMailOwner)

Dim chairNotesName As New NotesName(note.getitemvalue("Chair")(0))  

If Not(Isnull(Arraygetindex(calprof.getitemvalue("$PrevBusyName"),chairNotesName.Canonical))) Then

 NOTEUserIsCreator = True

End If

End If

End If

End if

End If

Either add the lines marked in green, or remove the whole block, since it didn’t exist in 8.5.1 and I can’t find any reference to “CSNoNameComparePrevOwner” anywhere else. The call to Getenvironmentstring is the one that is causing the agent manager to throw the error. You don’t really want to call that from a user agent running on a server, since it’ll try and read a variable from the server’s notes.ini, and that’s probably not what was intended here.

Subject: Exactly the same problem

Nice, I am not alone! Got exactly the same problem, but sorry, no solution! The agent works even fine with 6.5 template on Domino 8.5.2