Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53805

Word Doc Upload with screen captures fails

    XMLWordPrintable

Details

    Description

      Summary

      When importing a word document (.docx) with screenshots included, the page will not include the images, or will include broken links instead of the images. This also happens when you copy and paste all of the content from the document into a page editor.

      Environment

      Tested on both Chrome and Firefox with same results.

      Steps to Reproduce

      1. Copy and paste images into a word document, save document
      2. Attempt to either import the word document or copy and paste the content from the document into the page editor. The images will not appear, and a stack trace is thrown in the logs.

      Expected Results

      All content including images should appear in the page.

      Actual Results

      They don't, and the below exception is thrown in the xxxxxxx.log file:

      2016-02-18 00:24:20.270346500  -- referer: https://testing124.atlassian.net/wiki/pages/createpage.action?spaceKey=BACON&fromPageId=622616 | url: /wiki/rest/api/content | traceId: a2109114dfe34a70 | userName: efranklin
      2016-02-18 00:24:20.270347500 com.atlassian.confluence.content.render.xhtml.XhtmlException: com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value
      2016-02-18 00:24:20.270414500 	at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.unmarshal(StorageResourceIdentifierUnmarshaller.java:67)
      2016-02-18 00:24:20.270415500 	at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.unmarshal(StorageResourceIdentifierUnmarshaller.java:47)
      2016-02-18 00:24:20.270431500 	at com.atlassian.confluence.content.render.xhtml.links.XhtmlOutgoingLinksExtractor.extract(XhtmlOutgoingLinksExtractor.java:112)
      2016-02-18 00:24:20.270440500 	at com.atlassian.confluence.links.DefaultLinkManager.updateOutgoingLinks(DefaultLinkManager.java:219)
      2016-02-18 00:24:20.270441500 	at sun.reflect.GeneratedMethodAccessor2226.invoke(Unknown Source)
      2016-02-18 00:24:20.270441500 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2016-02-18 00:24:20.270442500 	at java.lang.reflect.Method.invoke(Method.java:497)
      2016-02-18 00:24:20.270448500 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2016-02-18 00:24:20.270449500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      2016-02-18 00:24:20.270449500 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      2016-02-18 00:24:20.270450500 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      

      Workaround

      Copy and paste individual images into the page editor. This workaround is not ideal for documents with many images.

      Attachments

        Activity

          People

            Unassigned Unassigned
            efranklin Eric Franklin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: