Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.0.2
Description
Symptom
- Creating new project with service desk template is loading non-stop (the project get created, but wiithout servicedesk configuration).
- The following error appears in atlassian-jira.log
2014-10-09 16:56:03,404 http-bio-8636-exec-24 ERROR superman 1016x4533x1 1lo4mna 10.60.2.192 /rest/project-templates/1.0/templates [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: The project has been created but an exception occurred while configuring the project template. Please refer to the logs for more information. com.atlassian.jira.projecttemplates.service.TemplateInstantiationFailure: The project has been created but an exception occurred while configuring the project template. Please refer to the logs for more information. .... Caused by: java.lang.IllegalArgumentException: ProjectRole can not be null at com.atlassian.jira.security.roles.DefaultProjectRoleManager.getProjectRoleActors(DefaultProjectRoleManager.java:127) at com.atlassian.servicedesk.internal.feature.gettingstarted.DefaultProjectRoleService.setDefaultRoleMembershipForProject(DefaultProjectRoleService.scala:43) at com.atlassian.servicedesk.internal.feature.gettingstarted.InitialSDPermissionSchemeManager.createPermissionSchemeForProject(InitialSDPermissionSchemeManager.scala:75) at com.atlassian.servicedesk.internal.feature.gettingstarted.DefaultSchemeService.createProjectPermissionScheme(DefaultSchemeService.scala:55) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1.apply(GettingStartedService.scala:106) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1.apply(GettingStartedService.scala:104)
Caused
"Developers" and "Users" roles validation are hard coded and JIRA service desk will fail if not present.
Workaround
Ensure the project role Developers and Users exist in the project role.