We created a button on a notes page to trigger replication. The purpose of creating and using a button to trigger replication is to get the start time and the end time of the replication and write the elapsed times to a log from within the buttons code. Obviously, we are trying to monitor replication times.
Here is some of the code:
s = Now()
Dim ss As New NotesDateTime(s)
Call db.Replicate( servername )
e = Now()
Dim ee As New NotesDateTime(e)
lngTimeDiff = ee.TimeDifference(ss)
d = lngTimeDiff/intMinutes
Call aLog.LogAction("replication started: " + Cstr(s) + " ended: " + Cstr(e) + " elapsed minutes: " + Cstr(d))
Anyways, when the users click the button, the replication fails and the log shows the error message: “You are not authorized to replicate or copy data from this database.”
Oddly enough, the user can trigger a replication from the replication form (right click, replicate selected database) without issue. But not, apparently, from this button.
I found a technote that suggests a solution where one should change the ACL by checking and enabling the “Replicate or Copy Documents” property for the Anonymous entry. Apparently this is an http task issue.
Here’s my question. This is a Notes client app that we are using. Not a web app. We don’t even have an Anonymous entry in the ACL. Should we create an Anonymous entry in the ACL?
Any help will be appreciated.