java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20)

Atlassian JIRA | Ivan Maduro | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When inserting an Excel macro into a Confuence page via the ! (exclamation mark) shortcut will cause the Editor to be unable to save the page. Inserting it via the Macro Browser UI won't cause this error. *Steps to reproduce:* # Attach an Excel file to the Confluence page # Type ! to bring up the Media Suggestions list, select the Excel file you just uploaded # try to save or preview the page *Result* The following error will be shown. _Failure when converting editor format to storage format._ *Workaround* Use the Macro browser to insert the Excel file The following stacktrace is shown in the Logs: {noformat} 013-11-07 12:35:14,729 WARN [TP-Processor6] [confluence.tinymceplugin.rest.DraftsResource] save The supplied editor content could not be converted to storage format. @40000000527b7afc2bf3944c -- url: /wiki/rest/tinymce/1/drafts | userName: sysadmin | referer: https://instance.atlassian.net/wiki/pages/editpage.action?pageId=1234567 @40000000527b7afc2bf39c1c com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (java.lang.IllegalArgumentException: filename cannot be null or blank.) @40000000527b7afc2bf3a004 at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:70) @40000000527b7afc2bf3a7d4 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41) @40000000527b7afc2bf3a7d4 at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:53) @40000000527b7afc2bf3abbc at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:40) @40000000527b7afc2bf3afa4 at com.atlassian.confluence.content.service.DefaultDraftService.saveDraftFromEditor(DefaultDraftService.java:90) Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf83f9c at com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError.handle(ThrowExceptionOnFragmentTransformationError.java:13) @40000000527b7afc2bf84f3c at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:169) @40000000527b7afc2bf85324 at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123) @40000000527b7afc2bf85af4 at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:49) @40000000527b7afc2bf85edc ... 267 more @40000000527b7afc2bf85edc Caused by: java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20) @40000000527b7afc2bf86a94 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseSingleMacroParameter(MacroParameterTypeParserImpl.java:208) @40000000527b7afc2bf86a94 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseMacroParameter(MacroParameterTypeParserImpl.java:96) @40000000527b7afc2bf87264 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseMacroParameter(MacroParameterTypeParserImpl.java:77) @40000000527b7afc2bf8764c at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroNameAndParameterSubParser.parse(MacroNameAndParameterSubParser.java:57) @40000000527b7afc2bf87e1c at com.atlassian.confluence.content.render.xhtml.editor.macro.EditorMacroUnmarshaller.unmarshal(EditorMacroUnmarshaller.java:73) @40000000527b7afc2bf885ec at com.atlassian.confluence.content.render.xhtml.editor.macro.EditorMacroUnmarshaller.unmarshal(EditorMacroUnmarshaller.java:31) @40000000527b7afc2bf889d4 at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:30) @40000000527b7afc2bf88dbc at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:147) {noformat} This also affect other types of content such as videos.

    Atlassian JIRA | 3 years ago | Ivan Maduro
    java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20)
  2. 0

    When inserting an Excel macro into a Confuence page via the ! (exclamation mark) shortcut will cause the Editor to be unable to save the page. Inserting it via the Macro Browser UI won't cause this error. *Steps to reproduce:* # Attach an Excel file to the Confluence page # Type ! to bring up the Media Suggestions list, select the Excel file you just uploaded # try to save or preview the page *Result* The following error will be shown. _Failure when converting editor format to storage format._ *Workaround* Use the Macro browser to insert the Excel file The following stacktrace is shown in the Logs: {noformat} 013-11-07 12:35:14,729 WARN [TP-Processor6] [confluence.tinymceplugin.rest.DraftsResource] save The supplied editor content could not be converted to storage format. @40000000527b7afc2bf3944c -- url: /wiki/rest/tinymce/1/drafts | userName: sysadmin | referer: https://instance.atlassian.net/wiki/pages/editpage.action?pageId=1234567 @40000000527b7afc2bf39c1c com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (java.lang.IllegalArgumentException: filename cannot be null or blank.) @40000000527b7afc2bf3a004 at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:70) @40000000527b7afc2bf3a7d4 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41) @40000000527b7afc2bf3a7d4 at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:53) @40000000527b7afc2bf3abbc at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:40) @40000000527b7afc2bf3afa4 at com.atlassian.confluence.content.service.DefaultDraftService.saveDraftFromEditor(DefaultDraftService.java:90) Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf83f9c at com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError.handle(ThrowExceptionOnFragmentTransformationError.java:13) @40000000527b7afc2bf84f3c at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:169) @40000000527b7afc2bf85324 at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123) @40000000527b7afc2bf85af4 at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:49) @40000000527b7afc2bf85edc ... 267 more @40000000527b7afc2bf85edc Caused by: java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20) @40000000527b7afc2bf86a94 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseSingleMacroParameter(MacroParameterTypeParserImpl.java:208) @40000000527b7afc2bf86a94 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseMacroParameter(MacroParameterTypeParserImpl.java:96) @40000000527b7afc2bf87264 at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseMacroParameter(MacroParameterTypeParserImpl.java:77) @40000000527b7afc2bf8764c at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroNameAndParameterSubParser.parse(MacroNameAndParameterSubParser.java:57) @40000000527b7afc2bf87e1c at com.atlassian.confluence.content.render.xhtml.editor.macro.EditorMacroUnmarshaller.unmarshal(EditorMacroUnmarshaller.java:73) @40000000527b7afc2bf885ec at com.atlassian.confluence.content.render.xhtml.editor.macro.EditorMacroUnmarshaller.unmarshal(EditorMacroUnmarshaller.java:31) @40000000527b7afc2bf889d4 at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:30) @40000000527b7afc2bf88dbc at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:147) {noformat} This also affect other types of content such as videos.

    Atlassian JIRA | 3 years ago | Ivan Maduro
    java.lang.IllegalArgumentException: filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      filename cannot be null or blank. @40000000527b7afc2bf862c4 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifier.<init>(AttachmentResourceIdentifier.java:20)

      at com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseSingleMacroParameter()
    2. com.atlassian.confluence
      MacroParameterTypeParserImpl.parseMacroParameter
      1. com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseSingleMacroParameter(MacroParameterTypeParserImpl.java:208)
      2. com.atlassian.confluence.content.render.xhtml.editor.macro.MacroParameterTypeParserImpl.parseMacroParameter(MacroParameterTypeParserImpl.java:96)
      2 frames