There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c46f7de0-22d2-463a-be8b-e3763d07275f XWIKI-23850 Open

$xwiki.getURLContent() doesn't work

 
View issue   ยท   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-ac3fde3c-8d23-4d3b-b988-6c6f649d5cda Changes by Dorian Ouakli on 02/Jan/26 10:47
 
Description: h2. Steps to reproduce:
# * Log-in as Admin.
# * Create a new, empty, page.
# * Using the wiki editor, set the following page content:

{code:java}
{{velocity}}
$xwiki.getURLContent("https://xwiki.org")
{{/velocity}}{code}

#
* Click "Save and View".

h2. Expected Result:

The page's content starts with:
{code:java}
<!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">........{code}
See the attached screenshot:

!image-2026-01-02-10-33-16-780.png|width=258,height=216!
h2. Actual Result:

The page's content is empty.

See the attached Screenshot:

!image-2026-01-02-10-34-02-512.png|width=282,height=133!
 
cid:jira-generated-image-avatar-f0694f7d-36f3-454d-808a-407f8b5b531b Changes by Thomas Mortagne on 02/Jan/26 10:51
 
Fix Version: 17.10.3
Fix Version: 16.10.16
Fix Version: 17.4.8