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

Error when "Import Word Document" if doc imported have a hyperlink with a macro definition

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      When trying to import Word documents with hyperlinks similar to macro definitions Confluence fails to import them and the following error is thrown:

      com.atlassian.confluence.api.service.exceptions.InternalServerException: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '394jsg-75ty-4825-lk65k-cfg456jmka' is unknown.
          at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.processMigrationResult(ContentBodyConversionServiceImpl.java:320)
      caused by: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '394jsg-75ty-4825-lk65k-cfg456jmka' is unknown.
          at com.atlassian.confluence.content.render.xhtml.migration.XhtmlMacroRendererComponent$MacroHandler.handleMacro(XhtmlMacroRendererComponent.java:91)
      
      com.atlassian.confluence.api.service.exceptions.InternalServerException: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '394jsg-75ty-4825-lk65k-cfg456jmka' is unknown.
      	at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.processMigrationResult(ContentBodyConversionServiceImpl.java:320)
      	at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.computeConvertedValue(ContentBodyConversionServiceImpl.java:229)
      	at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.lambda$convert$33(ContentBodyConversionServiceImpl.java:128)
      	at com.atlassian.confluence.api.impl.service.content.ThreadlocalWebResourceDependenciesRecorder.record(ThreadlocalWebResourceDependenciesRecorder.java:75)
      	at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.convert(ContentBodyConversionServiceImpl.java:124)
      	at com.atlassian.confluence.api.impl.service.content.ContentBodyConversionServiceImpl.convert(ContentBodyConversionServiceImpl.java:114)
      	at sun.reflect.GeneratedMethodAccessor3074.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.procee
      

      Steps to reproduce

      1. Create a .doc Word file having a hyperlink with a similar target:
        anything:anythingelse={394JSG-75TY-4825-LK65K-CFG456JMKA}
        
      2. Use the Import Word Document functionality from any page
      3. Select any options on it.
      4. Complete the import.

      Expected results
      The page should be imported on Confluence with a link on it.

      Actual results
      Confluence throws an error on screen stating that an unknown macro is missing with the same id as described in the Hyperlink target: 394JSG-75TY-4825-LK65K-CFG456JMKA

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aborzzatto Andre Borzzatto
              Votes:
              6 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: