Skip to content

Bug: URGENT all court report downloads are broken #7093

Description

@compwron

Reported by stakeholder

Nancy King, Office Manager at Voices for Children Montgomery, reports via email:

Volunteers, Case Supervisors, and myself are getting the following error when trying to generate a report on the tracking form. I have tried Microsoft Edge and Google Chrome.

Note: the actual error text/screenshot did not come through in the email we received, so the specific failure is not yet known. We have asked for a follow-up with the exact message.

Impact

  • Affects all roles at this org (volunteers, case supervisors, and org staff), not one user.
  • Reproduces in both Edge and Chrome, so it is unlikely to be browser-specific.

Info still needed

  • Screenshot or exact text of the error
  • Which page/button — "tracking form" is stakeholder language, not a term in the app. Most likely candidates:
    • Court Reports page (/case_court_reports) → "Generate Report" (produces the .docx)
    • Reports / Export Data page (/reports) → one of the CSV exports
  • The case number (or date range) being used, so we can reproduce with their data
  • Approximate timestamp of a failure, to line it up with production logs

Triage pointers

If it is the court report .docx generation, the relevant path is
CaseCourtReportsController#generate (app/controllers/case_court_reports_controller.rb),
which renders JSON and surfaces e.to_s to the user for any unhandled error, plus a
"Template is not found" message on Zip::Error. Voices for Children Montgomery uses a
custom court report template (see closed #1826 / #2265 / #3698), so a template/placeholder
mismatch is worth ruling out — app/documents/templates/montgomery_report_template.docx.

If it is a CSV export, the relevant services are under app/services/*_export_csv_service.rb.

Related history (all closed, for context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighHigh priorityType: BugDefect or regression📊 ReportsReports pulled by admins and supervisors

    Type

    No type

    Projects

    Status
    Merged to QA

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions