#519 Addressbook erased

closed-fixed
9
2002-03-04
2002-01-24
No

Runnig Squirrelmail 1.2.3 on Windows2000, Apache
1.3.22,PHP 4.06

Reported already with earlier versions of the 1.2
branch:

When deleting one entry from the address book, the
complete book gets erased.

This happend also on Windows NT, so probably this is a
Windows-special problem, however it occurs since
1.2.0rc3

Do probably anyone have an idea what's going wrong.
Unfortunately I cannot track down the cause in the
sources.

Thanks for your help!

Discussion

  • Stefan Meier

    Stefan Meier - 2002-01-24
    • priority: 5 --> 9
     
  • Pontus Ullgren

    Pontus Ullgren - 2002-02-15

    Logged In: YES
    user_id=61176

    Seems to be working on other platforms.
    If I could have access to a Windows 2000 server where I
    could test I can have a go at it.
    Other than that my best advice would be to change platform ;-P

     
  • Stefan Meier

    Stefan Meier - 2002-02-15

    Logged In: YES
    user_id=94471

    Thanks for replying. I fixed the problem myself. It seems
    wind*ws requires an additional unlock call in the
    addressbook save functions. The file gets unlocked
    automatically on *nix platforms.

     
  • Pontus Ullgren

    Pontus Ullgren - 2002-02-27

    Logged In: YES
    user_id=61176

    Could you supllie a patch for this ?
    Add it to this teracker entry and I'll see if I can merge it
    into SquirrelMail,

     
  • Pontus Ullgren

    Pontus Ullgren - 2002-02-27
    • assigned_to: nobody --> ullgren
    • status: open --> pending
     
  • Stefan Meier

    Stefan Meier - 2002-03-04
    • status: pending --> open
     
  • Stefan Meier

    Stefan Meier - 2002-03-04

    Logged In: YES
    user_id=94471

    (afaik this is fixed in 1.2.5, I submitted a patch together
    with the multiple signature patches)

    in functions/abook_local_file.php insert an unlock call
    right at the beginning of the overwrite function, so it
    looks like this:

    function overwrite(&$rows) {
    $this->unlock();
    $newfh = @fopen($this->filename, 'w');
    ...

     
  • Pontus Ullgren

    Pontus Ullgren - 2002-03-04
    • status: open --> closed-fixed
     
  • Pontus Ullgren

    Pontus Ullgren - 2002-03-04

    Logged In: YES
    user_id=61176

    Allready fixed in 1.2.5

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks