Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-66688

Paste Image to Comment at Issue Navigator is Not Working

    XMLWordPrintable

Details

    Description

      Summary

      Pasting image on issue navigator is not working properly.

      Steps to reproduce

      1. Go to issue navigator (Issues > Search for issues)
      2. Transition an issue
      3. Paste an image via Ctrl + V to a comment
      1. Go to issue navigator (Issues > Search for issues)
      2. Paste an image via Ctrl + V to a comment > Cancel
      3. Paste an image via Ctrl + V to a comment again

      Expected result

      "Attach Screenshot" screen is popup with the progress of the uploaded file

      Actual result

      An error screen pops up with "The issue no longer exists." message.

      Logs:

      2017-04-03 14:46:33.097870500 2017-04-03 14:46:33,094 workcontext-10543-1 ERROR sysadmin 886x10505x1  103.233.242.9 /secure/ShowAttachScreenshotFormAction!default.jspa [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.jira.event.issue.IssueHistoryEvent@19f6e5[issue=WMH-6,eventTypeId=13,params={}]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.streamhub.p2plugin.jira.listener.JiraEventListener.onEvent(com.atlassian.jira.event.issue.IssueHistoryEvent) throws java.io.IOException, listener=com.atlassian.streamhub.p2plugin.jira.listener.JiraEventListener@c94af0}]
      2017-04-03 14:46:33.098081500 java.lang.RuntimeException: Listener: com.atlassian.streamhub.p2plugin.jira.listener.JiraEventListener event: com.atlassian.jira.event.issue.IssueHistoryEvent
      2017-04-03 14:46:33.098082500 	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:50)
      2017-04-03 14:46:33.098083500 	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:56)
      2017-04-03 14:46:33.098101500 	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$null$0(AsynchronousAbleEventDispatcher.java:141)
      2017-04-03 14:46:33.098102500 	at com.atlassian.workcontext.api.WorkContextFunctionWrapper.lambda$withContext$0(WorkContextFunctionWrapper.java:43)
      2017-04-03 14:46:33.098102500 	at com.atlassian.workcontext.api.WorkContextFunctionWrapper.lambda$withContext$7(WorkContextFunctionWrapper.java:117)
      2017-04-03 14:46:33.098110500 	at com.atlassian.workcontext.api.WorkContextFunctionWrapper.lambda$withContext$1(WorkContextFunctionWrapper.java:49)
      2017-04-03 14:46:33.098111500 	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
      2017-04-03 14:46:33.098112500 	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618)
      2017-04-03 14:46:33.098113500 	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      2017-04-03 14:46:33.098118500 	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      2017-04-03 14:46:33.098119500 	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      2017-04-03 14:46:33.098120500 	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      2017-04-03 14:46:33.098120500 Caused by: java.lang.NullPointerException
      2017-04-03 14:46:33.098121500 	at com.atlassian.jira.config.featureflag.ExperimentsFeatureFlagContextUtils.isExperimentalFeature(ExperimentsFeatureFlagContextUtils.java:50)
      2017-04-03 14:46:33.098128500 	at com.atlassian.jira.config.featureflag.JiraFeatureFlagServiceImpl.getExperimentFeatureFlagContext(JiraFeatureFlagServiceImpl.java:95)
      2017-04-03 14:46:33.098130500 	at com.atlassian.jira.config.featureflag.JiraFeatureFlagServiceImpl.getBooleanValue(JiraFeatureFlagServiceImpl.java:130)
      2017-04-03 14:46:33.098130500 	at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
      2017-04-03 14:46:33.098137500 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2017-04-03 14:46:33.098137500 	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
      2017-04-03 14:46:33.098138500 	at com.sun.proxy.$Proxy362.getBooleanValue(Unknown Source)
      2017-04-03 14:46:33.098139500 	... 2 filtered
      2017-04-03 14:46:33.098139500 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-04-03 14:46:33.098145500 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      2017-04-03 14:46:33.098146500 	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      2017-04-03 14:46:33.098147500 	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      2017-04-03 14:46:33.098154500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-04-03 14:46:33.098155500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2017-04-03 14:46:33.098156500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2017-04-03 14:46:33.098167500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-04-03 14:46:33.098168500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor$1.run(ServiceTCCLInterceptor.java:61)
      2017-04-03 14:46:33.098169500 	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:130)
      2017-04-03 14:46:33.098175500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokePrivileged(ServiceTCCLInterceptor.java:58)
      2017-04-03 14:46:33.098176500 	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:50)
      2017-04-03 14:46:33.098183500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-04-03 14:46:33.098184500 	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      2017-04-03 14:46:33.098185500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-04-03 14:46:33.098191500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2017-04-03 14:46:33.098192500 	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2017-04-03 14:46:33.098193500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2017-04-03 14:46:33.098199500 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      2017-04-03 14:46:33.098200500 	at com.sun.proxy.$Proxy3061.getBooleanValue(Unknown Source)
      2017-04-03 14:46:33.098200500 	at com.atlassian.streamhub.p2plugin.jira.listener.JiraEventListener.onEvent(JiraEventListener.java:60)
      2017-04-03 14:46:33.098201500 	... 2 filtered
      2017-04-03 14:46:33.098208500 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-04-03 14:46:33.098216500 	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:40)
      2017-04-03 14:46:33.098217500 	... 11 more
      

      Note

      This is working fine for pasting the image for the first time or without transition the issue.

      Workaround

      Open the issue in new tab, paste the image via Ctrl + V
      * Address should be https://<instance>.atlassian.net/browse/<issue-key>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cteh Ting (Chiou Ting Teh)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: