« The Ultimate Make-Over of an IBM Lotus Domino Site (HND209) | Main| Object Orientated LotusScript Techniques and Tips (BP312) »

Directory Assistance is Over-Protective

Tags: development

I have developed user management application for a customer which is also included in the server's directory assistance. The database uses some views I copied from the Domino Directory to enable it properly to be used in directory assistance. To keep things simple my person form is called "Person" and the field names are the same as in the DD's person form (e.g. FirstName, LastName, Type, ...).

The user management application also includes company documents and each company has one special user who is allowed to create and edit additional users for that company. Thus this user has author access in the database ACL with the right to create documents. Now whenever this special user edits a person document from either a web browser or the Notes client all the fields for which in the Domino Directory's Person form the security setting "must have at least Editor access to use" is set some random fields are treated as if this flag is set in my form as well (which of course isn't the case). They all get the "PROTECTED" flag set. This prevents the fields from being modified by an author user and thus prevents my special user from modifying the person documents. Bummer. I don't know yet how to solve this since the logical solution would be to rename the fields. But this again will probably prevent my application from working as a directory in directory assistance. Another way would be to copy the documents to a "real" Domino Directory but I hope I can avoid that overhead.

The good thing is - I am at Lotusphere where all the Domino developers are hanging around in the labs. I am going to go there later and hopefully I will get a good solution to my dilemma. Let's hope for the best.

First Update (26.01.2006)

I talked to Steve Leland about the problem and showed it to him. Him promised to look into this but of course could not fix it now. Since the application needs to be delivered in the very near future I will have to use a workaround. I will probably rename the fields and use a backend agent running with the server's rights to copy the edit fields to the actual fields after the WebQuerySave agent has run.

Second Update (06.02.2006)

I have tried several workarounds including a WebQuerySave agent not running as a web user which starts another agent (using the RunOnServer method) running on behalf of the server which removes the "protected" flags. I also tried to rename the (as I though then) critical fields like FirstName, LastName etc. but since it can affect any field on the form (no matter if they are editable or computed or computed when composed) I have run out of options. My only resolve now is to remove the database from directory assistance and write an agent to synchronize the person documents with a "real" domino directory.

I have searched the knowledge base and LDD but apparently nobody else ever encountered the problem (which is reproducable with any database which is included in directory assistance btw.).

Third Update (06.02.2006)

The problem now has been assigned an SPR number (SLED6LRN9K). I'll update this entry when I get any news on it.

Fourth Update (10.02.2006)

Excerpt from my mail to Steve Leland describing the issue in a bit more detail:

...


Tested on Servers:

  • Domino 5.0.13a on Windows 2000
  • Domino 6.5.3 on Windows 2000
  • Domino 7.0 on Windows XP Professional (I know this is not a supported server OS, but it's a development server)

Clients:

  • Notes 5.0.11 on Win XP Prof
  • Notes 6.5.4 on Win XP Prof
  • Notes 7.0 on Win XP Prof
  • IE 6 SP2
  • Firefox 1.0.7

Steps to reproduce:

  1. Create a new database on a Domino server (select blank as template).
  2. Create a form in the database
  3. Create some fields on the form: at least one field of type Authors and at least one field with the same name as a field with the property "Must have at least Editor access to use" in a form (e.g. the Person form) in the Domino Directory (e.g. LastName, FirstName, Type, MailSystem, ...). The field you are creating must not have this property set.
  4. Include this database in the directory assistance of the server. It does not matter if or if not the necessary views for the Directory Assistance to actually work are present in the database.
  5. Make sure the database is actually included in the directory assistance (e.g. by looking at the "People & Groups" tab in the Domino Administrator client.
  6. Give a user or a group author access (with the "Create documents" permission for easier testing).
  7. Create some documents. Make sure that one or more users with Author access to the database are included in the Authors field to enable them to edit the documents. (It does not matter if the documents are created by a user with Author or with higher access.)
  8. Using a Notes ID with Author access to the database, edit the documents (for simplicity modify all field values and set the to the same value (except the authors field of course)) and save them. Alternatively use a web browser and the username and password of a user with Author access to the database.
  9. To verify the problem, open the documents and check if any values you modified in the previous step were not saved.
  10. Using the document properties box, look at these items. You should see "Field Flags: SUMMARY PROTECTED" for the items affected. This prevents users with Author access to the database from modifying the fields (saving modified field values).

Fifth Update (20.08.2006)

The SPR now has been filed and can be found in the knowledge base as technote #1237167 (see http://www.domblog.de/domblog.nsf/d6plinks/JPOR-6SUEWH).


...

Comments

Gravatar Image1 - Hi Jens,

we have the same problem. Occurs in R6.5.5, R7.0 and also R7.0.1. Workaround is to remove the database from the DA or to grant users Editor access. I can't find your SPR in IBM fix list - have you gotten any confirmation on when it will be fixed?

Regards, Thordis

Gravatar Image2 - Hi Jens,

we also have the same problem. and can't find your SPR in IBM fix list! Have you gotten any confirmation on when it will be fixed?

Thanks, Niko

Gravatar Image3 - Hi,
I also have the same problem and I'm a little shocked to see that the SPR is already three months old!
Looks like IBM is having problems fixing this. I hope it won't take forever...

Thomas

Gravatar Image4 - Well, looks like it will take forever.
I have opened an incident in May. They have confirmed the bug and that was it until today.

Thomas

Gravatar Image5 - I still have this problem although I have patch domino with 7.02 SP1 or install new 7.0.3.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Search

Calendar

MiscLinks

We Use Ytria Lotus Notes Tools For Faster Notes Development and Better Domino Administration

Tags

Site Info