Closed
Bug 1751601
Opened 2 years ago
Closed 2 years ago
Bugzilla::User->visible_bugs causes fatal error if one of the bug ids passed is an alias and not a bug id
Categories
(bugzilla.mozilla.org :: General, defect)
bugzilla.mozilla.org
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: dkl, Assigned: dkl)
References
(Regression)
Details
Attachments
(1 file)
Triggered by the changes in bug 1628759, normally Bugzilla::User->visible_bugs is used to filter bugs based on either a bug object or bug id. A user in bug 1572869 added a See Also value that contained an alias instead of a bug id and visible_bugs() throws an error if not an integer.
I was able to fix the bug and allow it to be viewed by updating the see also values to contain the bug ID instead of the alias. I had to update the value in both bug_see_also and the bugs_activity table.
I will update always store the ID instead of the alias in the bug_see_also table and to properly handle previous see_also values that use aliases.
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Merged to master.
https://github.com/mozilla-bteam/bmo/commit/747271df1d3c15ebdb55e4676d6e51568ce80390
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•