Skip to content

BugZilla returns id=0 on certain errors #186

@jcjones

Description

@jcjones

}
log.WithField("id", resp.Id).
WithField("url", u.bugzilla.ShowBug(resp.Id)).
Debug("created bugzilla ticket")
u.bugID = resp.Id

We're currently getting an error because of an invalid cc field:

{
  "file": "/build/gopath/src/github.com/mozilla/OneCRL-Tools/ccadb2OneCRL/main.go:520",
  "func": "main.(*Updater).OpenBug.func1",
  "id": 0,
  "level": "debug",
  "msg": "created bugzilla ticket",
  "time": "2020-11-17T19:15:27Z",
  "url": "https://bugzilla.mozilla.org/show_bug.cgi?id=0"
}

id=0 is invalid, so we need to catch that and abort in the future.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions