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

Space Export to HTML does not come with images in Include Page Macro pointed to a different Space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.12.4, 7.0.3
    • None

    Description

      Issue Summary

      Space Export to HTML does not come with images in Include Page Macro pointed to a different Space

      Environment

      Confluence 6.12.4
      Confluence 7.0.3

      Steps to Reproduce

      1. Create a new space named SpaceA
      2. Create a new page in SpaceA named PageA
      3. Upload an image to PageA and publish it so the image is shown in the view mode
      4. Create another new space named SpaceB
      5. Create a new page in SpaceB named PageB
      6. Insert an Include Page Macro in PageB that points to PageA
      7. Publish PageB so the image in PageA should now show in PageB
        PageB Storage Format
        <p>
        <ac:structured-macro ac:name="include" ac:schema-version="1" ac:macro-id="b6ee0786-f93b-4b78-8876-464b8d55c9d9">
        <ac:parameter ac:name="">
        <ac:link><ri:page ri:space-key="SPACEA" ri:content-title="PageA" /></ac:link>
        </ac:parameter>
        </ac:structured-macro>
        </p>
        
      8. Export SpaceB into HTML format and open up the exported PageB

      Expected Results

      The image that is seen in PageB from the Confluence is also seen in the HTML Page Export

      Actual Results

      The image is displayed as a Broken Image in the HTML Page Export

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Information

      By inspecting the HTML File for the exported page, the image attachment can be found as below:

      <div id="main-content" class="wiki-content group">
      <p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" height="250" src="attachments/1179681/1179695.jpg" data-image-src="attachments/1179681/1179695.jpg" data-unresolved-comment-count="0" data-linked-resource-id="1179695" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="bananas.jpg" data-base-url="http://10.60.3.46:2703" data-linked-resource-content-type="image/jpeg" data-linked-resource-container-id="1179681" data-linked-resource-container-version="2"></span></p>
      </div>
      

      If the attachment is manually created in attachments/1179681/1179695.jpg, it can be shown in the HTML so if Confluence has included the image in the HTML Page Export, this page would displayed with the image properly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btan@atlassian.com Damien Tan
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: