Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60193

Drag and drop for MS Office and PDF files don't work in answers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 7.2.2, 7.4.0
    • Confluence 5.5 standalone.

    Description

      Issue Summary

      Drag and drop for Office and PDF files don't work in answers of a question. The file is dragged over but eventually runs into an error.

      Environment

      1. Confluence v7.2.2
      2. Questions for Confluence v2.7.24

      Steps to Reproduce

      1. Answer to an existing question
      2. Enter some text in the answer
      3. Drag and drop a PDF file (or any MS Office file)
      4. Save the answer

      Expected Result

      The PDF file should be displayed.

      Actual Result

      PDF file shows an error and is not viewable.

      The following ERROR is seen in logs,

      2020-08-19 10:33:35,959 ERROR [https-jsse-nio2-8443-exec-3] [atlassian.confluence.event.ConfluenceEventDispatcher] run There was an exception thrown trying to dispatch event [com.atlassian.confluence.event.events.content.attachment.AttachmentUpdateEvent[source=com.atlassian.confluence.pages.DefaultAttachmentManager@44464c8b]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.analytics.client.listener.ConfluenceEventListener.onEvent(java.lang.Object), listener=com.atlassian.analytics.client.listener.ConfluenceEventListener@1863b508} (timed)]
       -- referer: https://localhost:8443/c722/questions/1703939/drag-drop-attachment | url: /c722/plugins/drag-and-drop/upload.action | traceId: bceddcb8e094d780 | userName: admin | action: upload
      java.lang.RuntimeException: Invalid property 'attachmentContainerUpdated' of bean class [com.atlassian.confluence.event.events.content.attachment.AttachmentUpdateEvent]: Getter for property 'attachmentContainerUpdated' threw exception; nested exception is java.lang.reflect.InvocationTargetException. Listener: com.atlassian.analytics.client.listener.ConfluenceEventListener event: com.atlassian.confluence.event.events.content.attachment.AttachmentUpdateEvent
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:57)
      	at com.atlassian.confluence.event.ConfluenceListenerHandlersConfiguration$TimedListenerInvoker.invoke(ConfluenceListenerHandlersConfiguration.java:96)
      	at com.atlassian.confluence.event.ConfluenceEventDispatcher$VCacheRequestContextRunnableFactory$1.lambda$run$0(ConfluenceEventDispatcher.java:93)
      .
      Caused by: java.lang.NullPointerException
      	at com.atlassian.confluence.event.events.content.attachment.GeneralAttachmentUpdateEvent.isAttachmentContainerUpdated(GeneralAttachmentUpdateEvent.java:76)
      

      Workaround

      Add attachment manually though the Insert Image option in answer section

      Attachments

        1. pdf-1.png
          pdf-1.png
          257 kB
        2. pdf-2.png
          pdf-2.png
          222 kB

        Activity

          People

            Unassigned Unassigned
            haftab Hassan Aftab
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: