Closed Bug 2089049 Opened 11 days ago Closed 8 days ago

REST /bug/2048343/history fails with internal error: Can't call method "iso8601" on an undefined value at Bugzilla/API/V1/Util.pm line 362

Categories

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

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: marco, Assigned: dkl)

References

Details

Attachments

(1 external file)

Fetching the history of bug 2048343 makes the REST API return a 400 with an internal error:

$ curl -s https://bugzilla.mozilla.org/rest/bug/2048343/history
{"code":-32000,"error":1,"message":"An internal error has occurred, but Bugzilla doesn't know what Can't call method \"iso8601\" on an undefined value at /app/Bugzilla/API/V1/Util.pm line 362. means. ..."}

The bug's details, comments and attachments endpoints all work (/rest/bug/2048343, /comment, /attachment return 200). Only /history fails, so one of its history entries probably has an undefined/NULL timestamp.

Impact: bugbug (https://github.com/mozilla/bugbug) asks for bug history in batches (/rest/bug/<id>/history?ids=...). Any batch that includes 2048343 fails the same way, so the daily bugbug Bugzilla data task is failing: https://community-tc.services.mozilla.com/tasks/L7L_KP31RZuHlfN7BjMa0g

Expected: /rest/bug/2048343/history returns the history, either skipping or fixing the bad entry.

Assignee: nobody → dkl
Status: NEW → ASSIGNED
See Also: → 2089526

Authored by https://github.com/dklawren
https://github.com/mozilla/bmo/commit/417eaf46e2a8b9a16f9aa48b9a9216a411b316ac
[master] Bug 2089049 - REST /bug/2048343/history fails with internal error: Can't call method "iso8601" on an undefined value at Bugzilla/API/V1/Util.pm line 362

(via GitHub webhook, authenticated as shared-secret)

Status: ASSIGNED → RESOLVED
Closed: 8 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: