This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-ca89e971-3a3f-4512-b6ae-f9b8a71e6e46 XWIKI-22869 Open

Typed object and class property references cannot be resolved by JavaScript model API

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fea65ce0-2ca3-41a5-a932-ff39e019bb75 Michael Hamann created this issue on 10/Feb/25 10:24
 
Summary: Typed object and class property references cannot be resolved by JavaScript model API
Issue Type: cid:jira-generated-image-avatar-ca89e971-3a3f-4512-b6ae-f9b8a71e6e46 Bug
Affects Versions: 12.0-rc-1
Assignee: Unassigned
Components: Web - Templates & Resources
Created: 10/Feb/25 10:24
Priority: cid:jira-generated-image-static-major-6e4652d5-4088-4214-9f8f-0e17cffbf42a Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

Execute XWiki.Model.resolve('object_property:xwiki:Wiki Macro.WebHome^XWiki.WikiMacroClass[0].code') in the browser's console on any XWiki page.

Expected result:

The entity reference can be parsed.

Actual result:

An error No parsing definition found for Entity Type [-1] is logged.

The entity reference resolver on the client-side seems to expect objectProperty as entity type instead of object_property. There seems to be no entity reference serializer that includes a type on the client side so I think this only affects the resolver.

Support for entity reference types has been introduced in XWIKI-16018.