Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Feature request - fairly urgent also :), posted by nickc1 on Fri May 2 10:32:57 2003 
    icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Fri May 2 10:39:51 2003 
       icon2.gif   Re: Feature request - fairly urgent also :), posted by nickc1 on Fri May 2 11:05:28 2003 
    icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Mon May 12 22:47:10 2003 
       icon2.gif   Re: Feature request - fairly urgent also :), posted by nickc1 on Wed May 14 18:18:31 2003 
          icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Wed May 14 20:07:54 2003 
Message ID: 310     Entry time: Fri May 2 10:39:51 2003     In reply to: 309     Reply to this: 311
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS:   ELOG Version:  
Subject: Re: Feature request - fairly urgent also :) 
> We are using elog as a small database system, today we came across a 
> problem where 2 people were editing the same record and the first one to 
> submit his changes were overwritten when the second person submitted his.
> 
> Is there anyway to lock a logbook record when someone has pressed EDIT, 
> maybe set a flag in the logbook entry so it has to be unlocked when its 
> submitted by the originator or by an administrator.

No, but I will put it on the wishlist. Anyhow it is hard to implement 
something like this. Assume that I would lock a page whenever it's edited 
by 
someone. This person can edit it and forget to submit the changes, just 
close 
the browser. Since the elogd server does not know when a remote browser is 
closed, it cannot determine if the editing is just taking long or if the 
person closed the browser. In the latter case, the message would be locked 
forever and nobody could change it any more. If I put a timeout, like keep 
locked for N minutes, it's again not 100% safe. I saw people doing shift 
work 
with elog, opening a page, keeping it open for 8 hours and then submit it. 
So 
if I set the timeout to 8h, and someone abandons editing a message, this 
message would be blocked for 8h, which is probably also not what you want. 

Alternatively, I just can display a messge: Warning: this message is 
currently edited by user xxx on host xxx. But if the warning is ignored by 
the user, then again we have the same problem.

Do you see a clever solution to that?
ELOG V3.1.5-2eba886