Details
-
Suggestion
-
Resolution: Won't Fix
-
None
-
Bugzilla 2.20.6, MySQL 3.23.55
Description
The bugzilla importer fails with a stack trace when bugzilla issues contain assignees, reporters and comments by users that do not exist in bugzilla.
2008-11-25 18:10:00,543 http-8080-Processor24 INFO [atlassian.jira.util.BugzillaImportBean] Exception processing bug id 1 2008-11-25 18:10:00,543 http-8080-Processor24 WARN [web.action.util.BugzillaImport] Exception thrown while importing Bugzilla data java.lang.RuntimeException: Could not create bugzilla user 1, referenced in the bugzilla database. at com.atlassian.jira.util.BugzillaImportBean.createUser(BugzillaImportBean.java:1250) at com.atlassian.jira.util.BugzillaImportBean.getUser(BugzillaImportBean.java:1679) at com.atlassian.jira.util.BugzillaImportBean.createIssue(BugzillaImportBean.java:428) at com.atlassian.jira.util.BugzillaImportBean.createIssues(BugzillaImportBean.java:369) at com.atlassian.jira.util.BugzillaImportBean.create(BugzillaImportBean.java:245) at com.atlassian.jira.web.action.util.BugzillaImport.doRun(BugzillaImport.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
However the importer gracefully noted that some watchers could not be added due to not existing in the bugzilla database. Not sure if this error was caused by lax referential integrity in older versions of bugzilla, or the old version of mysql.
A workaround is to alter the bugzilla database such that all bugs and comments refer to users that exist.