FossilRepo

Ticket create/edit pages return 500 Server Error

Fixed

a2015cf107e6cfa… · opened 3 days, 2 hours ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Fixed
Subsystem
Created
April 8, 2026 1:40 p.m.

The ticket creation page (/projects//fossil/tickets/create/) and ticket edit page returned a 500 Server Error.

REPRODUCTION: 1. Navigate to any project's Tickets tab 2. Click "New Ticket" 3. 500 error

ROOT CAUSE: The ticket_create and ticket_edit views query TicketFieldDefinition.objects.filter(repository=fossil_repo) without error handling. If the query fails for any reason (table missing, database error, etc.), the entire view 500s instead of degrading gracefully.

Affected code: - fossil/views.py — ticket_create(), ticket_edit(), ticket_fields_list()

FIX: Wrapped TicketFieldDefinition queries in try/except so the views degrade gracefully with an empty custom_fields list instead of 500ing. The ticket form still works — you just don't see custom fields if the query fails.

Status: Fixed and deployed.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button