Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-11730

Integrity Checker Fix reports success while bypassing Invalid Test Step Result Attachments

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Ready for Release
    • Blocker
    • Resolution: Unresolved
    • Xray DC 8.4.6
    • None
    • Integrity Checker
    • None
    • N/A

    • UNCOVERED

    Description

      Description:
      Xray Integrity Checker's "Fix" action reports unqualified success ("Complete") when fixing Invalid Test Step Result Attachments, even when it bypasses records it identified as unfixable, without reporting them as failed or skipped.

      Environment:

      • Jira DC: 10.3.24
      • Xray version: 8.4.6-j10

      Steps to Reproduce:

      1. Run the Xray Integrity Checker (XrayIntegrityChecker!check.jspa).
      2. Note that the check identifies one or more Invalid Test Step Result Attachments:
      3. In the application logs, confirm there are Test Step Result records with a missing reference to an attachment ID, logged as:
        2026-08-10 08:41:11,354+0200 http-nio2-8080-exec-22 DEBUG user.name 520x137053x3 1ks5kuc 10.110.0.78,172.18.0.3 /secure/admin/views/XrayIntegrityChecker!check.jspa [c.x.raven.repository.TestStepResultRepositoryImpl] Integrity Checker: Bypassing unfixable missing reference to attachment ID 1773 in TSR 56929
      4. Run the "Fix" action (XrayIntegrityChecker!fix.jspa).
      5. Observe that the same "Bypassing unfixable" log lines are repeated for the same TSR IDs during the fix run:
        2026-08-10 08:41:16,933+0200 http-nio2-8080-exec-39 DEBUG user.name 521x137935x6 1ks5kuc 10.110.0.78,172.18.0.3 /secure/admin/views/XrayIntegrityChecker!fix.jspa [c.x.raven.repository.TestStepResultRepositoryImpl] Integrity Checker: Bypassing unfixable missing reference to attachment ID 1773 in TSR 56929
      6. Observe that final result reported by the Fix action says the fix was successfully performed:
      7. Re-run the Integrity Checker and confirm the same records are still reported as invalid:

      Expected Result:
      The Fix action should either:

      • Resolve the missing attachment reference on the affected Test Step Result records, OR
      • If not resolvable, explicitly report these Invalid Test Step Result Attachments as failed/skipped in its completion result.

      Actual Result:
      The Fix action silently bypasses the affected Invalid Test Step Result Attachments (12 in the observed case) and reports full success with no mention of them:

      2026-08-10 08:41:20,100+0200 http-nio2-8080-exec-39 INFO user.name 521x137935x6 1ks5kuc 10.110.0.78,172.18.0.3 /secure/admin/views/XrayIntegrityChecker!fix.jspa [c.x.r.service.impl.IntegrityServiceImpl] Integrity Checker: Complete. Repaired copy-paste references across 4 rows successfully.

      There is no indication anywhere in the result, UI or logs, that any Invalid Test Step Result Attachments were left unresolved. Re-running the Integrity Checker confirms the same records still fail, meaning the Fix action did not actually address what it detected.

      Impact:

      • Right now, Invalid Test Step Result Attachments are not fixable through the Fix action on the Integrity Checker.
      • In addition, users relying on the Fix action's completion message have no way to know that known Invalid Test Step Result Attachments were left unresolved.

      Attachments

        1. image-2026-08-11-15-51-53-851.png
          302 kB
          Victor Tisbierek
        2. image-2026-08-11-15-52-02-791.png
          302 kB
          Victor Tisbierek
        3. image-2026-08-11-15-52-42-987.png
          88 kB
          Victor Tisbierek

        Issue Links

          Activity

            People

              joana.fonseca Joana Fonseca
              victor.tisbierek Victor Tisbierek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: