This issue has been created
There is 1 update.
 
 
Test Reporting Application / cid:jira-generated-image-avatar-eb3b6f90-2ecc-4140-8c84-29418871f932 TESTREPORT-58 Open

Replace deprecated Velocity APIs that fill the logs with deprecation warnings

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f862c4e3-6693-47de-81b7-0cee5b2cb440 Charpentier Lucas created this issue on 01/Oct/26 16:21
 
Summary: Replace deprecated Velocity APIs that fill the logs with deprecation warnings
Issue Type: cid:jira-generated-image-avatar-eb3b6f90-2ecc-4140-8c84-29418871f932 Improvement
Assignee: Unassigned
Created: 01/Oct/26 16:21
Priority: cid:jira-generated-image-static-major-f01832bf-1204-4093-9184-a007e9be9ff2 Major
Reporter: Charpentier Lucas
Difficulty: Unknown
Description:

Problem

Using the application fills the server logs with Velocity deprecation warnings, one per call and per rendered row, e.g.:

WARN  o.a.v.introspection - Deprecated usage of getter [com.xpn.xwiki.api.Document.getName] in QA.TestSheet#title@1,10
WARN  o.a.v.introspection - Deprecated usage of method [org.apache.velocity.tools.generic.SortTool.sort] in QA.LiveTableResults@96,32

On a few page views of the home page, test spaces and tests, they made up about 35% of the log (685 of 1,964 lines). Most of them (474) come from $doc.name in the titles of the sheets, which are evaluated for every LiveTable row.

Deprecated calls to replace

  • $doc.name → $doc.documentReference.name: titles of QA.AppSheet, QA.BrowserSheet, QA.DatabaseSheet, QA.PlatformSheet, QA.ProductSheet, QA.TestSheet, QA.TestSpaceWebHomeTemplate, QA.ExecutionAddSheet (title and content); $testDocument.getName() in QA.LiveTableResultsFullDetailed
  • $context.action → $xcontext.action: QA.TestSheet
  • $sorttool.sort(...) → $collectiontool.sort(...): QA.LiveTableResults, QA.StatisticsPanel
  • $collectionstool.getSet() / getOrderedSet() → $collectiontool.set / $collectiontool.orderedSet: QA.LiveTableResults
  • $mathtool.toIntegererror.png → $numbertool.toNumbererror.png.intValue() (null-safe): QA.LiveTableResultsFullDetailed, QA.FixAppValue
  • $xwiki.searchDocuments(...) → $services.query.hql(...): QA.Management, QA.FixAppValue, QA.StatisticsPanel

The legacy ? HQL parameters are tracked separately in TESTREPORT-33.

 
 

1 update

 
cid:jira-generated-image-avatar-f862c4e3-6693-47de-81b7-0cee5b2cb440 Changes by Charpentier Lucas on 01/Oct/26 16:21
 
Assignee: Charpentier Lucas