This issue has been created
There are 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-fbf4d832-086d-489c-a044-aaf89dd66be2 XWIKI-23850 Open

$xwiki.getURLContent() doesn't work

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c8f35c26-ce93-4432-915a-d6879b43fb08 Dorian Ouakli created this issue on 02/Jan/26 10:36
 
Summary: $xwiki.getURLContent() doesn't work
Issue Type: cid:jira-generated-image-avatar-fbf4d832-086d-489c-a044-aaf89dd66be2 Bug
Affects Versions: 17.10.0
Assignee: Unassigned
Attachments: image-2026-01-02-10-33-16-780.png, image-2026-01-02-10-34-02-512.png
Components: Old Core
Created: 02/Jan/26 10:36
Labels: regression
Priority: cid:jira-generated-image-static-blocker-aaa7a6a3-4640-478a-a19c-5273dedce508 Blocker
Reporter: Dorian Ouakli
Description:

Steps to reproduce:

  1. Log-in as Admin.
  2. Create a new, empty, page.
  3. Using the wiki editor, set the following page content:
{{velocity}}
$xwiki.getURLContent("https://xwiki.org")
{{/velocity}}
  1. 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:

44477_image-2026-01-02-10-33-16-780.png

Actual Result:

The page's content is empty.

See the attached Screenshot:

44476_image-2026-01-02-10-34-02-512.png

 
 

3 comments

 
cid:jira-generated-image-avatar-c8f35c26-ce93-4432-915a-d6879b43fb08 Dorian Ouakli on 02/Jan/26 10:37
 

Hi, I suspect this is caused by XCOMMONS-3286 and that the bug also affects stable branches, but I didn't check if it was the case.
I only tested on the following versions:

  • 17.9.0: Can't reproduce
  • 17.10.0: Reproduced
  • 17.10.2: Reproduced
 
cid:jira-generated-image-avatar-c8f35c26-ce93-4432-915a-d6879b43fb08 Dorian Ouakli on 02/Jan/26 10:38
 
Hi, I suspect this is caused by XCOMMONS-3286 and that the bug also affects stable branches, but I didn't check if it was the case.
I only tested on the following versions:
* 17.9.0: Can't reproduce
* 17.10.0: Reproduced
* 17.10.2: Reproduced


Thanks,
Dorian.
 
cid:jira-generated-image-avatar-c8f35c26-ce93-4432-915a-d6879b43fb08 Dorian Ouakli on 02/Jan/26 10:44
 
Hi, I suspect this is caused by XCOMMONS-3286 and that the bug also affects stable branches, but I didn't check if it was the case.
I only tested on the following versions:
* 17.9.0
(xwiki-platform-distribution-flavor-jetty-hsqldb) : Can't reproduce
* 17.10.0
(Tomcat 10 + Postgresql + Remote SolR in custom docker images) : Reproduced
* 17.10.2
(xwiki-platform-distribution-flavor-jetty-hsqldb) : Reproduced

Thanks,
Dorian.