-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Killing sessions crashes after workspace deltion #18561
Comments
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Hi again! It’s been 60 days since anything happened on this issue, so we are going to close it. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Should we stop folk from deleting workspaces if they have sessions open? 🤔 |
We could filter it at least by preventing folks from deleting a workspace associated with an active session. Alternatively, and I'm not sure how much work this would be, we could update the session to dis-associate it from the deleted workspace so it could still operate. |
I'm not sure if this should be expected behaviour but what if the user wants to delete all active sessions associated with a workspace altogether? If thats the case maybe we could have a |
I don't want to nudge but its been a week, any suggestions on the implementation? I'd like to work on this issue. @adfoster-r7 @smcintyre-r7 |
Sorry I've been a bit swamped. I think avoiding the crash being logged to stdout and calling Long term it would be good to ensure this situation can't happen in the first place, i.e. with the session validation before deleting workspaces etc - but that decision would also have an impact on Metasploit Pro too which would need additional research cycles to confirm that we wouldn't have time to prioritise right now. |
This PR catches an exception when updating a non-existing session. Prior to this PR trying to run sessions -k after running workspace -D would result in a stacktrace being printed to the console.
If you open a session, then delete your workspace, then kill a sessions you'll receive a large exception message.
To reproduce it:
workspace -D
)sessions -K
The text was updated successfully, but these errors were encountered: