Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22869

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.0-rc-1
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: