This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ea0232d9-23dc-4cca-a2e6-6461ad35ae2e XWIKI-25562 Open

Making a request for a download of a page without an attached file

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fa996f9f-7e98-4c26-9b2d-5fcffe24079a Andreea Bran created this issue on 23/Oct/26 13:59
 
Summary: Making a request for a download of a page without an attached file
Issue Type: cid:jira-generated-image-avatar-ea0232d9-23dc-4cca-a2e6-6461ad35ae2e Bug
Affects Versions: 18.8.0
Assignee: Unassigned
Attachments: Screenshot from 2026-10-23 14-44-15.png, Screenshot from 2026-10-23 14-50-18.png
Components: Old Core
Created: 23/Oct/26 13:59
Environment: Ubuntu 24.04.4, Chrome Version 154.0.8, local XWiki Jetty 18.8.0
Priority: cid:jira-generated-image-static-minor-6d32074e-2fae-4ff4-81d0-3142d1f60f5d Minor
Reporter: Andreea Bran
Description:

STEPS TO REPRODUCE
1. Run a XWiki 18.8.0
2. Request the download URL of an existing page without a file name:

http://localhost:8080/xwiki/bin/download/Sandbox/TestPage3

To clarify the expectations:

  • when requesting the view of a page, /bin/view/Main/ returns 302 (normal).
  • when requesting the download URL of a non-existing attached file, /bin/download/Main/WebHome/nosuchfile.png returns 404 (normal).

EXPECTED RESULTS
The "attachment not found" response (404), or the redirection filter ignores the URL.

ACTUAL RESULTS
Actual: Shown error is

Caused by: java.lang.NullPointerException: Cannot read field "parent" because "reference" is null

and an "Uncaught exception" warning in the log, plus error 500 in the console:
_thumb_45783.png

 
 

1 update

 
cid:jira-generated-image-avatar-fa996f9f-7e98-4c26-9b2d-5fcffe24079a Changes by Andreea Bran on 23/Oct/26 14:00
 
Description: STEPS TO REPRODUCE
1. Run a XWiki 18.8.0
2. Request the download URL of an existing page without a file name:

http://localhost:8080/xwiki/bin/download/Sandbox/TestPage3

To clarify the expectations:

- when requesting the view of a page, /bin/view/Main/ returns 302 (normal).
- when requesting the download URL of a non-existing attached file, /bin/download/Main/WebHome/nosuchfile.png returns 404 (normal).

EXPECTED RESULTS
The "attachment not found" response (404), or the redirection filter ignores the URL.

ACTUAL RESULTS
Actual: Shown error is

{code}
Caused by: java.lang.NullPointerException: Cannot read field "parent" because "reference" is null
{code}
and an "Uncaught exception" warning in the log
, :
!Screenshot from 2026-10-23 14-44-15.png|thumbnail!
plus error 500 in the console:
!Screenshot from 2026-10-23 14-
44 50 - 15 18 .png|thumbnail!