Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-4679

Change Issue type name letters from capital to tiny or vice-versa causes a bug in the project creation

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding bug report.

      Summary

      Change Issue type name letters from capital to tiny or vice-versa causes a bug in the project creation in Service Desk projects.

      Environment

      Cloud

      Steps to Reproduce

      1. Change the issue type letters, like the "IT Help" for example to something else: "it help".
      2. Try to create a project in SD.

      Expected Results

      The project should be created.

      Actual Results

      The project is not created and an error occurs in the logs:

      2017-01-19 17:18:15.893717500 2017-01-19 17:18:15,888 http-nio-3001-exec-171 ERROR sysadmin 1038x90371x1  104.192.142.137 /rest/project-templates/1.0/templates [c.a.j.project.ProjectCreateRegistrarImpl.privacy-safe] The handler with id com.atlassian.jira.project-templates-plugin:apply-project-template-handler threw an exception while handling a notification about a project being created
      2017-01-19 17:18:15.893720500 java.lang.IllegalStateException: An issue type with the name 'IT Help' exists already.
      2017-01-19 17:18:15.893720500 	at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:130)
      2017-01-19 17:18:15.893739500 	at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueTypeAndAddToDefaultScheme(DefaultIssueTypeManager.java:160)
      2017-01-19 17:18:15.893740500 	at com.atlassian.jira.config.DefaultIssueTypeManager.createIssueType(DefaultIssueTypeManager.java:93)
      2017-01-19 17:18:15.893741500 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2017-01-19 17:18:15.893745500 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2017-01-19 17:18:15.893745500 	... 1 filtered
      2017-01-19 17:18:15.893745500 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-01-19 17:18:15.893746500 	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
      2017-01-19 17:18:15.893750500 	at com.sun.proxy.$Proxy94.createIssueType(Unknown Source)
      2017-01-19 17:18:15.893750500 	... 3 filtered
      2017-01-19 17:18:15.893751500 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-01-19 17:18:15.893751500 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      2017-01-19 17:18:15.893751500 	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      2017-01-19 17:18:15.893754500 	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      2017-01-19 17:18:15.893755500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-01-19 17:18:15.893755500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2017-01-19 17:18:15.893761500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2017-01-19 17:18:15.893762500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-01-19 17:18:15.893765500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor$1.run(ServiceTCCLInterceptor.java:61)
      2017-01-19 17:18:15.893766500 	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:130)
      2017-01-19 17:18:15.893766500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokePrivileged(ServiceTCCLInterceptor.java:58)
      2017-01-19 17:18:15.893769500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:50)
      2017-01-19 17:18:15.893769500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-01-19 17:18:15.893770500 	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      2017-01-19 17:18:15.893773500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-01-19 17:18:15.893773500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2017-01-19 17:18:15.893774500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2017-01-19 17:18:15.893778500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-01-19 17:18:15.893778500 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      2017-01-19 17:18:15.893779500 	at com.sun.proxy.$Proxy3157.createIssueType(Unknown Source)
      2017-01-19 17:18:15.893779500 	at com.atlassian.servicedesk.squalor.jira.IssueTypeHelper.helpCreateIssueType(IssueTypeHelper.java:12)
      2017-01-19 17:18:15.893781500 	at com.atlassian.servicedesk.internal.feature.jira.issuetype.ServiceDeskIssueTypeManagerScala.createOrGetIssueType(ServiceDeskIssueTypeManagerScala.scala:39)
      2017-01-19 17:18:15.893782500 	at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$getDefaultIssueTypes$1.apply(GettingStartedService.scala:388)
      2017-01-19 17:18:15.893783500 	at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$getDefaultIssueTypes$1.apply(GettingStartedService.scala:385)
      2017-01-19 17:18:15.893786500 	at scala.collection.immutable.List.map(List.scala:273)
      2017-01-19 17:18:15.893786500 	at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.getDefaultIssueTypes(GettingStartedService.scala:385)
      2017-01-19 17:18:15.893789500 	at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.com$atlassian$servicedesk$internal$feature$gettingstarted$GettingStartedService$$createRequestTypes(GettingStartedService.scala:363)
      
      

      Workaround

      Change the offending issue types in the logs to match the same letter size as the project says.

      Attachments

        Issue Links

          Activity

            People

              pgrasevski Peter Grasevski
              aborzzatto Andre Borzzatto
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync