Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21902

HTML export does not display user avatar probably due to wrong storage path of image in archive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Old Core - HTML Export
    • None
    • Unknown

    Description

      Prerequisites:

      • have a custom avatar for the existing admin account.

      Steps to reproduce:

      1. Logged with pre-admin account
      2. Go to any Sandbox test page
      3. Click More Actions → Export → HTML
      4. Unzip the exported archive and open "index.html" page
      5. Look at the user profile avatar on the page header

      Actual result:

      You won't see user avatar on local HTML version, instead of it you'll see invalid avatar in exported html file.png

      If you check the HTML structure of the page, the image has a static path

      <img src="/xwiki/bin/download/XWiki/Admin/neom-s0A8sa9oasY-unsplash.jpg?width=50&amp;height=50&amp;keepAspectRatio=true&amp;rev=1.1" alt="Administrator" title="Administrator">
      

      Moreover, in unzipped folder, the image is located

      test sandbox export html\attachment\xwiki\XWiki\Admin\neom-s0A8sa9oasY-unsplash.jpg

      Expected result:

      The avatar is visible after page export in HTML

      Attachments

        Activity

          People

            Unassigned Unassigned
            npetrenko Nikita Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: