Closed Bug 1252084 Opened 8 years ago Closed 8 years ago

Warning when entering row into user_request_log when running commandline script

Categories

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

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

Was executing scripts/close_bugs_wontfix.pl today and got the warning below:

[root@bugzillaadm.private.scl3 bugzilla.mozilla.org]# perl scripts/close_bugs_wontfix.pl 
DBD::mysql::db do failed: Column 'method' cannot be null [for Statement "INSERT INTO user_request_log
                         (user_id, ip_address, user_agent, request_url,
                         method, timestamp, bug_id, attach_id, action, server)
                         VALUES (?, ?, ?, ?, ?, NOW(), ?, ?, ?, ?)"] at Bugzilla.pm line 646.
About to close 332 bugs as WONTFIX.

We need to either skip this when commandline script or add in generic values.I would think we can just skip it since we do not need to track these types of code executions.

dkl
Attached patch 1252084_1.patchSplinter Review
Attachment #8724734 - Flags: review?(dylan)
Comment on attachment 8724734 [details] [diff] [review]
1252084_1.patch

Review of attachment 8724734 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

Thought I had already gotten to this one.
Attachment #8724734 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   f559a15..1bb2d45  master -> master
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: