Closed Bug 1065398 Opened 10 years ago Closed 10 years ago

Error when using checksetup.pl to create BMO database from scratch when Review extension enabled

Categories

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

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dylan)

Details

Attachments

(1 file, 1 obsolete file)

[snip]
Creating initial dummy product 'TestProduct'...
Odd number of elements in anonymous hash at ./extensions/Review/Extension.pm line 300.
Can't use string ("table") as an ARRAY ref while "strict refs" in use at ./extensions/Review/Extension.pm line 193.

Re-enabling Review after initial checksetup.pl and then running again works without error.
Assignee: nobody → dylan
Attached patch bug-1065398-v1.patch (obsolete) β€” β€” Splinter Review
The problem is with _new_users_from_input(). It is being called in list context, and features a bare return, which returns the empty list when called in list context. I don't think we need to differentiate between false and exists -- simple hash access doesn't auto-vivify,
Attached patch bug-1065398-v2.patch β€” β€” Splinter Review
I don't encounter the error with this patch.
Attachment #8487248 - Attachment is obsolete: true
Attachment #8487677 - Flags: review?(dkl)
Status: NEW → ASSIGNED
Comment on attachment 8487677 [details] [diff] [review]
bug-1065398-v2.patch

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

r=dkl
Attachment #8487677 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   58b7205..d4a04eb  master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: Extensions: Review → Extensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: