Closed
Bug 1492511
Opened 6 years ago
Closed 6 years ago
Code to updating subscriber values for current private bugs is throwing errors in the phabbugz log
Categories
(bugzilla.mozilla.org :: Phabricator Integration, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dkl, Assigned: dkl)
Details
Attachments
(1 file)
{"Fields":{"msg":"Checking for username squatters","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374856000000000,"EnvVersion":2,"Severity":6}
{"Fields":{"msg":"Updating subscriber values for old private bugs","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374861000000000,"EnvVersion":2,"Severity":6}
{"Fields":{"msg":"Processing bug 1451702","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374861000000000,"EnvVersion":2,"Severity":6}
{"Fields":{"msg":"Processing revision D1292","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374861000000000,"EnvVersion":2,"Severity":6}
{"Fields":{"msg":"Revision 1292 updated","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374863000000000,"EnvVersion":2,"Severity":6}
Use of uninitialized value $revision_id in concatenation (.) or string at /app/extensions/PhabBugz/lib/Feed.pm line 739.
{"Fields":{"msg":"Processing revision D","type":"USERS"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374863000000000,"EnvVersion":2,"Severity":6}
Use of uninitialized value $revision_id in int at /app/extensions/PhabBugz/lib/Feed.pm line 741.
{"Fields":{"msg":"Can't call method \"add_subscriber\" on an undefined value at /app/extensions/PhabBugz/lib/Feed.pm line 744.\n"},"Hostname":"ip-172-31-32-138","Logger":"STDERR","Pid":"8","Type":"Bugzilla.Extension.PhabBugz.Feed","Timestamp":1537374863000000000,"EnvVersion":2,"Severity":0}
Assignee | ||
Updated•6 years ago
|
Summary: Code to check for username squatting is throwing errors in the phabbugz log → Code to updating subscriber values for current private bugs is throwing errors in the phabbugz log
Assignee | ||
Comment 1•6 years ago
|
||
I was able to fix the phabricator attachments in BMO that had incorrect filenames by looking for the affected bugs using:
select bug_id, attach_id, mimetype, filename from attachments where mimetype = 'text/x-phabricator-request' and filename not regexp '^phabricator-D[[:digit:]]+-url.txt$' order by attach_id
There were only 8-10 affected by this and were most probably attached manually by the user.
I am also patching the code to skip over attachments that are not recognized properly as to not stop phabbugz from working.
dkl
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•