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

Attachments in object content is not displayed if a redirect xobject is present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 14.10.19
    • Old Core
    • Unknown
    • N/A

    Description

      Reproduction steps:

      • Create a new page with a AWM.Content xobject
      • Upload a new image in the page and insert it in the xobject (either directly in the editor or in two steps)
      • Add a redirect xobject to another page
      • Open back the page with the editor xobject and check the AWM.Content xobject

      Expected result:

      • the editor displays the attached image

      Obtained result:

      • the editor only displays the reference of the image
      • Trying to display the source of the content returns "The service used by the CKEditor source plugin to convert between HTML and wiki syntax."
      • When checking the HTML we can see that the URL is good and leads to /download/ action with the reference of the current page, but following this leads to /download/ action to the redirected page

      Note that the problems also appears when the xobject content is used programmatically in another document.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: