Document Locking Vs Users with Authors access - Problem!

Hello!

I have to implement document locking into my applications… but I experienced the following problem.

Here’s the situation:

Two users are trying to work on the same document. Let’s say userA and userB.

userA is manager, userB is author.

1st scenario:

userB (author) locks the document. userA (manager) edits the same document and try to save it… userA receive the following error…

“03/08/2005 11:10:56 AM HTTP Web Server: Lotus Notes Exception - The document is already locked by someone else. [/doclockd.nsf/2759c7d13afc04eb85256e69006565b6/b280576b0d8ba1f085256e0b00101223!EditDocument&Seq=1]”

… which is the normal behaviour.

2nd scenario:

userA (manager) locks the document. userB (author) edits the same document and try to save it… believe it or not… the document is saved… without any error.

However, if I switch userB to editor or more, everything works as expected. (same error message)

I know that during the lock process, an authors field is created. But as far as I know, It has always been possible to add more than one authors field to a document… and this user must really be author, not more. (can’t be editor)

I can’t believe that there’s no way to implement locks to users with authors access?

Someone know what’s happening?

I don’t have a clue.

Thanks a lot!

Note #1: I’m using Domino 6.04. I tried it on 6.5.1 with the same results.

Note #2: This is a web application… and I’m using a webqueryopen to lock the document.

Pascal

Subject: Document Locking Vs Users with Authors access - Problem!

i dont have much web expereince, but since no one else has responded to you this MIGHT be a bug??? but dont quote me on that.

can u recreate the same thing scenario for the client and see if it still behaves like that?

also, how often does that happen? maybe its just easier to deal with it when it arises rather then build in error handling for it.

ST

Subject: RE: Document Locking Vs Users with Authors access - Problem!

On the Notes client, everything works as expected. It really looks like a bug on the web.

I even tried to lock the document using my ID (manager access) using the right-click “Lock Document” on my Notes client.

Then, using another username on the web (author access), I was still able to save the document. Again, If I switch to editor access, I receive the message that the document is currently locked by someone else. (which is correct)

So, I’m confused…

As for your “how often does that happen”, I’m not sure I understand what you mean.

It happens everytimes!

In other words, a user with author access to a database seems to be able to save documents that were locked by other users… on the web only.

I think I tried everything, and this is my conclusion. Editor/Designer/Manager access care about locked documents… but not Author access… really strange.

Pascal

Subject: RE: Document Locking Vs Users with Authors access - Problem!

what i mean by how often is: How often does the Author edit a document while his/her manager is editting it also? We have many approval cycle databases here and this is a non issue.

also, you should try chnaging the owner of the document when the status of it changes. i.e, when the doucment status=“” then the author has author access…when status=“waiting for approval” then the manager has author access (is in the author field) and the employee is removed from the author field, therefore he/she cannot edit it, which is the way it’s supposed to be…and employee should not have access to a document after its been submitted to their manager.

if your managers have editor+ access to the db then you dont even have to add them to the Author field, just remove the employee as need.

hope this helps

ST

Subject: RE: Document Locking Vs Users with Authors access - Problem!

Oh I see… my application is not an “approval cycle” at all.

There are documents… and a few people can edit them (with the authors field). I use the word “Manager” because I was doing my test with my username (which is manager) and with another “normal” user (which is author).

But even if authorA edits the document… and authorB try to save it while the document is locked by authorA, the save will work. But if I save it with my manager access while the document is locked by someone else, I can’t save it.

Hence my conclusion that author access don’t care about locked documents… at least, it looks so.

Thanks!

Subject: RE: Document Locking Vs Users with Authors access - Problem!

Sorry i misunderstood, Pascal.

Looks like you’re going to have to live with the bug until lotus patches it…

ST

Subject: Document Locking Vs Users with Authors access - Problem!

Maybe http://www.xetrion.com can help you.

Subject: RE: Document Locking Vs Users with Authors access - Problem!

I need a solution for Mozilla-based browsers too… not just Internet Explorer.

Thanks!