Details
-
Bug
-
Status: Ready for Release
-
Major
-
Resolution: Unresolved
-
Xray DC 8.5.5
-
None
-
None
-
DC
Description
When a Test Run is created through the JUnit non-multipart import endpoint with evidence attached, Xray creates attachment records of types 0 and 4.
However, when the corresponding Test Run is deleted, only the type 0 attachment records and files are removed.
The type 4 attachments remain in the database and on disk, even though the associated Test Run no longer exists.
Steps to Reproduce
- Prepare a JUnit XML report containing one test case with a testrun_evidence property and a single Base64-encoded ZIP attachment.
- Import the report using: POST /rest/raven/1.0/import/execution/junit
- Open the resulting Test Execution and identify the imported Test Run.
- Verify that attachment records of types 0 and 4 have been created in the database and on disk.
- Delete the Test Run using the Remove/Delete action in the Test Execution.
- Inspect the database attachment records and filesystem again.
Actual Result
- The Test Run is deleted.
- Type 0 attachment records and corresponding files are removed.
- Type 4 attachment records and corresponding files remain in the database and filesystem.
- These remaining attachments appear to be orphaned after the Test Run deletion.
Expected Result
Deleting a Test Run should also remove all evidence attachments exclusively associated with that Test Run, including their database records and physical files.
No unreferenced attachment data should remain after deletion.
Impact
- Orphaned attachments accumulate in the database and filesystem.
- Disk usage continues to increase despite deletion of Test Runs.
- Database and filesystem cleanup may be required to recover storage.
- Long-term storage growth could become significant in environments with frequent automated execution imports.
Attachments
Issue Links
- is duplicated by
-
XDC-1327 Loading...