Menu

#1504 Lock file not deleted during Windows shutdown

Next release
closed
nobody
None
Medium
2020-09-10
2020-01-25
Larry Ellis
No

If Windows 10 is shut down or restarted while Password Safe is running, Password Safe does not delete the PLK lock file.

It may be possible for PS to detect the shutdown and delete this file; if so I believe this would be a desirable change.

Discussion

  • Larry Ellis

    Larry Ellis - 2020-01-25

    I should add that I observed this behavior on PS version 3.49.01

     
  • John Connor

    John Connor - 2020-04-19

    The same happens when closing the database in Ubuntu using the Window Manager - pressing "x", close window.
    PS v1.04 BETA

    It seems to me that, if there is an event raised when exiting the app, it could have a handler to orderly close the open databases, and to release the locks.

     
  • ku-be

    ku-be - 2020-07-11

    It's not just upon shutdown that the .plk lock file doesn't get deleted as expected. Here's what I've observed with v3.52.
    Before each scenario below:

    • Passwordsafe is not running
    • Lock file manually deleted before launching passwordsafe, if it exists..
    • Launch password safe, open safe, lock file is created.

    Test scenarios:

    1. Choose File --> Close, safe is closed and lock file is deleted.
    2. Choose File --> Exit, or Alt+F4, passwordsafe exits, lock file is not deleted
    3. Right-click passwordsafe tray icon, pick Exit, passwordsafe exits, lock file is not deleted

    Conclusion: the lock file is not being deleted on a "normal" exit. If this is fixed, it'll probably be fixed for passwordsafe being terminated by a shutdown too.

     

    Last edit: ku-be 2020-07-11
    • MrMe

      MrMe - 2020-07-18

      I was also able to reproduce this using v3.52. It does appear to be a problem that needs fixing.

       
      • MrMe

        MrMe - 2020-07-18

        On further investigation, it appears that this issue started at v3.51 as I could not reproduce it with v3.50 or v3.49.

         
  • MrMe

    MrMe - 2020-08-27

    Hi Rony,

    Can this important bug be addressed in v3.53 final?

    Per my investigation, it started at v3.51

     
  • Rony Shapiro

    Rony Shapiro - 2020-08-28
    • status: open --> pending
     
  • Rony Shapiro

    Rony Shapiro - 2020-08-28

    Regression - fixed in commit ecbf17fcc
    Will be in 3.53

     
    • MrMe

      MrMe - 2020-08-28

      Awesome! Thank you!

       
  • Rony Shapiro

    Rony Shapiro - 2020-09-10
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB