Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.0.0-OD-2015.50.1, 5.10
-
9
-
Severity 3 - Minor
-
1
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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
- Create a .doc Word file having a hyperlink with a similar target:
anything:anythingelse={394JSG-75TY-4825-LK65K-CFG456JMKA}
- Use the Import Word Document functionality from any page
- Select any options on it.
- 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
- relates to
-
CONFCLOUD-40349 Error when "Import Word Document" if doc imported have a hyperlink with a macro definition
- Closed