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

[Bug] Soft-Deleted cases show up as "(Closed at as )" in the case list. #1543

Closed
miyoyo opened this issue Sep 21, 2020 · 0 comments
Closed
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@miyoyo
Copy link

miyoyo commented Sep 21, 2020

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 20.04.1 LTS on WSL 2
OS version (client) Windows 10 19041.508
TheHive version / git hash 4.0, develop-th4 : 41cfed8
Package Type From source
Browser type & version Firefox 80.0.1 (64-bit)

Problem Description

Deleting a case using the v1 API, as such:

DELETE http://the.hive.local/api/v1/case/12512

Makes the case show up as closed in the web UI, but with the "Closed at" time and the "summary" values being empty.

Steps to Reproduce

  1. Create a case
  2. send a DELETE api request to the newly created case using the V1 delete api
  3. Open the web UI and remove the "open" filter

Possible Solutions

When deleting, either:

  • Fill the endDate, then show "(Deleted at ${endDate})"
  • Make deletion similar to closing, without the resolutionStatus (So, endDate, summary, etc)

Complementary information

View of the web UI:
image

Example of a "soft deleted" case:

{
    "_id": "12512",
    "_type": "Case",
    "_createdBy": "user@local",
    "_updatedBy": null,
    "_createdAt": 1600687279066,
    "_updatedAt": null,
    "number": 5,
    "title": "Duplicate Two",
    "description": "Described by this",
    "severity": 2,
    "startDate": 1600687279056,
    "endDate": null,
    "tags": [],
    "flag": false,
    "tlp": 2,
    "pap": 2,
    "status": "Deleted",
    "summary": null,
    "impactStatus": null,
    "resolutionStatus": null,
    "assignee": "user@local",
    "customFields": [],
    "extraData": {}
}
@miyoyo miyoyo added TheHive4 TheHive4 related issues bug labels Sep 21, 2020
rriclet added a commit that referenced this issue Oct 28, 2020
@nadouani nadouani mentioned this issue Oct 28, 2020
To-om pushed a commit that referenced this issue Oct 29, 2020
@To-om To-om added this to the 4.0.1 milestone Oct 29, 2020
@To-om To-om closed this as completed Oct 29, 2020
To-om pushed a commit that referenced this issue Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

3 participants