Closed Bug 2036191 Opened 2 months ago Closed 10 days ago

Crash Signature Field Mismatch in Bugzilla REST API

Categories

(bugzilla.mozilla.org :: API, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

Root Cause

The crash signature custom field is not enabled for the Web Compatibility product in Bugzilla
Despite this, the field can be set via REST API (a glitch), which bugbot exploited when "Copying crash signatures from duplicate bugs"
When the bug is later retrieved, the field is absent from the JSON response because it's not enabled for that product — even though the value is stored in the DB

Impact

API responses don't match what's visible in the Web UI
Inconsistent data state between the database and the API

Proposed Fixes

  1. Prevent writes — Block setting a field via POST /rest/bug or PUT /rest/bug/:id if it's not enabled for the product
  2. Always return set values — Include a field and its value in GET /rest/bug/:id JSON if it has any stored value
  3. Expand the allowlist — Add Web Compatibility to the list of products where crash signatures are enabled

Recommended Approach

Options 2 and 3 together would resolve the immediate issue
Option 3 alone is insufficient — it would recur if another non-enabled product's bug gets a crash signature set via the API glitch

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: