Bug 1096547 - Adding an external tracker with no groups causes an error.
Summary: Adding an external tracker with no groups causes an error.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 4.4
Assignee: Matt Tyson 🤬
QA Contact: Simon Green
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-11 23:02 UTC by Simon Green
Modified: 2018-12-09 06:29 UTC (History)
7 users (show)

Fixed In Version: 4.4.4021
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-07 00:30:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Simon Green 2014-05-11 23:02:23 UTC
Description of problem:
Adding a new external tracker with no groups products an error

Version-Release number of selected component (if applicable):
4.4

How reproducible:
always

Steps to Reproduce:
1. Go to the External Tracker page
2. Add a new external tracker with no groups selected
3.

Actual results:
An unexpected error occurred. This could be a temporary problem, or
some code is behaving incorrectly. If this problem persists, please
email this page to bugzilla-requests with details of what
you were doing at the time this message appeared.

URL: https://bugzilla.redhat.com/page.cgi?id=externalbugs/list.html [Open URL]
Bad argument param sent to Bugzilla::Group::new function.

Traceback:

at Bugzilla/Object.pm line 90
Bugzilla::Object::_init(...) called at Bugzilla/Object.pm line
48 Bugzilla::Object::new(...) called
at /loader/0xb17d3b0/Bugzilla/Extension/ExternalBugs/Type.pm line 166
Bugzilla::Extension::ExternalBugs::Type::set_groups(...) called
at /loader/0xb17d3b0/Bugzilla/Extension/ExternalBugs/Type.pm line 291
Bugzilla::Extension::ExternalBugs::Type::create(...) called
at ./extensions/ExternalBugs/Extension.pm line 212
Bugzilla::Extension::ExternalBugs::_page_list(...) called
at ./extensions/ExternalBugs/Extension.pm line 179
Bugzilla::Extension::ExternalBugs::page_before_template(...) called at
Bugzilla/Hook.pm line 18 Bugzilla::Hook::process(...) called
at /var/www/html/bugzilla/page.cgi line 69

Expected results:
The external tracker is added.

Additional info:

Comment 2 Simon Green 2014-05-11 23:04:05 UTC
Workaround:

Create the external tracker with one or more groups, and then edit the tracker and remove the groups.

Comment 3 Simon Green 2014-07-07 00:30:39 UTC
This change is now live. If there are any issues, do not reopen this bug.
Instead, you should create a new bug and reference this bug.

  -- simon


Note You need to log in before you can comment on or make changes to this bug.