This issue has been created
There are 6 updates.
 
 
Blog Application / cid:jira-generated-image-avatar-d522e385-c7df-48c3-812a-13f151efbcdd BLOG-268 Closed

Deprecated usage of Document#getName() when displaying a category without a name

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d0ded2ad-fcc4-4f1d-847c-2ffe0f975a86 Vincent Massol created this issue on 13/Oct/26 23:34
 
Summary: Deprecated usage of Document#getName() when displaying a category without a name
Issue Type: cid:jira-generated-image-avatar-d522e385-c7df-48c3-812a-13f151efbcdd Bug
Affects Versions: 9.15.14
Assignee: Unassigned
Created: 13/Oct/26 23:34
Priority: cid:jira-generated-image-static-major-baa1e386-a3a9-4a6b-870c-a3edda5701e0 Major
Reporter: Vincent Massol
Description:

When a blog category has no name property value, displaying it (e.g. in the Categories panel) falls back to the deprecated com.xpn.xwiki.api.Document#getName() getter, which logs:

WARN o.a.v.introspection - Deprecated usage of getter [com.xpn.xwiki.api.Document.getName] in xwiki:Blog.CategoriesPanel@342,29

The call is in the #getCategoryName macro of Blog.CategoriesCode ($categoryDoc.name). It should use $categoryDoc.documentReference.name instead.

This warning also makes BlogManagementTest fail on CI (forbidden log content), see https://ci.xwiki.org/job/XWiki%20Contrib/job/application-blog/job/master/525/

 
 

6 updates

 
cid:jira-generated-image-avatar-d0ded2ad-fcc4-4f1d-847c-2ffe0f975a86 Changes by Vincent Massol on 13/Oct/26 23:34
 
Fix Version: 9.15.15
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Fixed
Status: Open Closed