cyb3rfox / Aurora-Incident-Response

Incident Response Documentation made easy. Developed by Incident Responders for Incident Responders
Apache License 2.0
758 stars 81 forks source link

Bug | Capturing lock when closing from the X #34

Closed febrezo closed 3 years ago

febrezo commented 4 years ago

I'm not sure yet if this is only taking place in my development scenario, but when I open a .fox file in the development version the file automatically gets locked if it was unlocked (which is expected). The problem is that if the application is closed with the X the file will remain locked the next time you open it so you cannot edit it.

Although this will probably need further discussion, it may be interesting to:

Otherwise, the only way I found to unlock the file is to manually edit the Json.

cyb3rfox commented 4 years ago

Upon quit it should release the lock. There was a race condition problem in the past but i haven0t seen that anymore, except when i force-kill the program.

febrezo commented 4 years ago

Let me check that in-depth to improve the description of the issue. That might be the point as I generally Ctrl+C the application during development.

cyb3rfox commented 4 years ago

For now I implemented a "force unlock" button into the menu. That saves you from opening the file in notepad. It's also needed as a prereq to implement encryption.