This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9228f181-bd83-4e19-b913-09e0dd55dda7 XWIKI-25209 Open

Velocity error logged on every page view when a docextra UI extension doesn't define the itemnumber parameter

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1962727d-fec9-450f-8c26-e4bd78feb728 Simon Urli created this issue on 08/Oct/26 09:35
 
Summary: Velocity error logged on every page view when a docextra UI extension doesn't define the itemnumber parameter
Issue Type: cid:jira-generated-image-avatar-9228f181-bd83-4e19-b913-09e0dd55dda7 Bug
Affects Versions: 13.6-rc-1
Assignee: Unassigned
Components: Flamingo Skin
Created: 08/Oct/26 09:35
Priority: cid:jira-generated-image-static-major-d5bf3798-6fd2-4f7f-a38f-90bbd022b012 Major
Reporter: Simon Urli
Description:

Steps to reproduce

  1. Create a page with an XWiki.UIExtensionClass object on the extension point org.xwiki.plaftorm.template.docextra, scope wiki, with the following parameters (note: no itemnumber):
    show=true
    title=Test
    name=test
    
  2. View any page.

Expected

The new tab is displayed at the bottom of the page without an item count, and nothing is logged. The extension point documentation lists itemnumber as optional.

Actual

The tab is displayed correctly, but every page view logs an error in the server logs, once per such tab:

ERROR o.a.v.rendering - Left side ($docextra.get(3)) of comparison operation has null value at environment:/skins/flamingo/docextra.vm[line 95, column 55]

The item count of a UI extension tab is taken from $params.itemnumber, which is null when the parameter is missing, and docextra.vm then compares it with >= 0.

This also happens in the functional tests: the tabs created by DocExtraTabsIT don't define itemnumber, so every page view of the tests that run after it in xwiki-platform-flamingo-skin-test-docker logs this error.

 
 

2 updates

 
cid:jira-generated-image-avatar-1962727d-fec9-450f-8c26-e4bd78feb728 Changes by Simon Urli on 08/Oct/26 09:35
 
Fix Version: 18.9.0-rc-1
Assignee: Simon Urli