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

$xwiki.getURLContent() does not return failing response body anymore

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • Log-in as Admin.
      • Create a new, empty, page.
      • Using the wiki editor, set the following page content:
      {{velocity}}
      $xwiki.getURLContent("https://xwiki.org")
      {{/velocity}}
      • Click "Save and View".

      Expected Result:

      The page's content starts with:

      <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge">........

      See the attached screenshot:

      Actual Result:

      The page's content is empty.

      See the attached Screenshot:

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            douakli Dorian Ouakli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: