There are 4 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b6297f66-2e74-4221-861c-1d2c884ef508 XWIKI-25202 Open

The page tabs (Comments, Attachments, Information) and other dynamically loaded content fail to load when XWiki is accessed over HTTP/2

 
View issue   ·   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-ffc9e3ea-8d5d-49bf-8b6e-82b4dabd1977 Changes by Michael Hamann on 07/Oct/26 17:40
 
Fix Version: 18.9.0-rc-1
Fix Version: 17.10.14
Fix Version: 18.4.7
Attachment: attachments-tab-h2.png
 
 

1 comment

 
cid:jira-generated-image-avatar-ad9b8656-4811-4941-b710-1d80019e7023 Florian Véron on 07/Oct/26 17:48
 

Suggested fix :

Sanitize the header value in #sendRequiredSkinExtensions (in display_macros.vm) after #getRequiredSkinExtensions and before $response.setHeader(...).

Keep the newline join inside #getRequiredSkinExtensions (needed for line-by-line filtering / duplicate removal). Only flatten CR/LF for the HTTP wire format: the client injects the value as an HTML fragment, so a space is a valid separator.

Proposed change:
 

#macro (sendRequiredSkinExtensions)
  #getRequiredSkinExtensions($requiredSkinExtensions)
  #set ($requiredSkinExtensions = $requiredSkinExtensions.replaceAll('[\r\n]+', ' ').trim())
  #set ($discard = $response.setHeader('X-XWIKI-HTML-HEAD', $requiredSkinExtensions))
#end