Skip to content
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

"Close tasks and case" deletes tasks instead of closing them #1755

Closed
H2Cyber opened this issue Jan 20, 2021 · 8 comments
Closed

"Close tasks and case" deletes tasks instead of closing them #1755

H2Cyber opened this issue Jan 20, 2021 · 8 comments
Assignees
Labels
enhancement TheHive4 TheHive4 related issues
Milestone

Comments

@H2Cyber
Copy link

H2Cyber commented Jan 20, 2021

Clicking on "Close tasks and case" deletes tasks instead of closing them

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
TheHive version / git hash 4.0.4
Package Type DEB

Steps to Reproduce

  1. Create a case with one or more tasks. Do not open or delete the tasks.
  2. Close the case, and choose "Close tasks and case"
    Close tasks and case
  3. Notice how the tasks are deleted (instead of closed)
    Tasks are gone
@H2Cyber H2Cyber added TheHive4 TheHive4 related issues bug labels Jan 20, 2021
@cshanahan
Copy link

My team and I stumbled upon this bug yesterday. We are running 4.0.2.

To add to the conversation, tasks that are open when the case is closed are being deleted, whether they have notes associated with them or not. So, we have lost tasks and the notes that were associated with those tasks when the case was closed.

The work-around is obvious, make sure all tasks have been opened and closed before you close the case.

@nadouani
Copy link
Contributor

nadouani commented Feb 3, 2021

TheHive deletes tasks that have not been started at all, when closing a case. There is no valid reason to keep those tasks.

If you work on them, then their status should be set to started(automatically I guess).

@nadouani
Copy link
Contributor

nadouani commented Feb 3, 2021

I confirm that TheHive remove tasks in "Waiting" status (not started), which is legit.

@nadouani nadouani added discussion and removed bug labels Feb 3, 2021
@nadouani nadouani changed the title [Bug] "Close tasks and case" deletes tasks instead of closing them "Close tasks and case" deletes tasks instead of closing them Feb 3, 2021
@H2Cyber
Copy link
Author

H2Cyber commented Feb 3, 2021

Not sure what everyone thinks, but when I click on "Close tasks and case", I expect TheHive to close the tasks, not delete them :)

As noted by @cshanahan above, even the open tasks are being deleted when "Close tasks and case" is clicked.

@nadouani
Copy link
Contributor

nadouani commented Feb 4, 2021

As noted by @cshanahan above, even the open tasks are being deleted when "Close tasks and case" is clicked.

This is not true.

@H2Cyber
Copy link
Author

H2Cyber commented Feb 4, 2021

As noted by @cshanahan above, even the open tasks are being deleted when "Close tasks and case" is clicked.

This is not true.

I just gave it a try, and confirm that only the unstarted tasks are being deleted.

May be it would be a good idea to modify the warning message This case contains the following open or unassigned tasks by adding a note like All unopened tasks will be deleted when the case is closed.

Or better yet, rename Close tasks and case to something like Close open tasks and case.

@nadouani nadouani self-assigned this Feb 4, 2021
@nadouani nadouani added this to the 4.0.5 milestone Feb 4, 2021
@nadouani
Copy link
Contributor

nadouani commented Feb 4, 2021

I'll change the warning to:

This case contains the following open or unassigned tasks. Closing the case will permanently remove the unassigned ones. This action cannot be undone

@nadouani
Copy link
Contributor

nadouani commented Feb 4, 2021

Screenshot 2021-02-04 at 19 17 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

4 participants