NotesDatabase.Server Inconsistency
Glen Urban April 13 2010 02:42:32 PM
Consider the following LotusScript codeDim session As New NotesSession
Print session.CurrentDatabase.Server
Would you expect the server name to be in an Abbreviated (e.g. SERVER/GB/ACME) or Canonical format (e.g.CN=SERVER/OU=GB/O¬ME )?
The answer is "it could be either": I experienced a problem in some code that depended upon this property, on one Notes client it evaluated to an Abbreviated name and on another to a Canonical name. Both clients were 8.5.1. Both running on the same server. The only obvious difference was that the designer client was installed on one client machine but not the other.
I resolved the problem by forcing a conversion to a canonical format so that the code worked regardless of how database.server decided to return the name.
Has anyone else experienced this problem?
- Comments [0]
